Sha256: d2f4c318c432dcd7623fcc8c67514b93ab567382e72db4a1eff4e10e3fec4068
Contents?: true
Size: 881 Bytes
Versions: 11
Compression:
Stored size: 881 Bytes
Contents
(function($) { $.widget('pageflow.scrollIndicator', { _create: function() { var parent = this.options.parent, that = this; parent.on('pageactivate', function(event) { that.element.toggleClass('invert', $(event.target).hasClass('invert')); }); parent.on('scrollerhintdown', function() { that.element.addClass('animate'); setTimeout(function() { that.element.removeClass('animate'); }, 500); }); parent.on('scrollernearbottom', function(event) { var page = $(event.target).parents('section'); if (page.hasClass('active')) { that.element.toggleClass('visible', parent.nextPageExists()); } }); parent.on('scrollernotnearbottom slideshowchangepage', function() { that.element.removeClass('visible'); }); } }); }(jQuery));
Version data entries
11 entries across 11 versions & 1 rubygems