Callbacks Pro only

Fresco Pro adds a number of callbacks that can be used alongside other Options.

  • afterPosition

    A function to call after the position changes. The first argument is the current position within the loaded group.

    afterPosition: function(position) {
      alert("You've reached position " + position);
    }
  • afterHide

    A function to call when Fresco hides.

    afterHide: function() {
      alert('Fresco is no longer visible');
    }
  • onShow

    A function to call when Fresco comes into view.

    onShow: function() {
      alert('Fresco is visible');
    }

Contents

* Pro Only