1(function($){ 2 // wow = new WOW( 3 // { 4 // boxClass: 'wow', // default 5 // animateClass: 'animated', // default 6 // offset: 50, // default 7 // mobile: false, // default 8 // live: true // default 9 // } 10 // ) 11 // wow.init(); 12 13 // Animate on scroll - like WOW 14 function onScrollInit( items, trigger ) { 15 items.each( function() { 16 var osElement = $(this), 17 osAnimationClass = osElement.attr('data-animation'), 18 osAnimationDelay = osElement.attr('data-animation-delay'); 19 osElement.css({ 20 '-webkit-animation-delay': osAnimationDelay, 21 '-moz-animation-delay': osAnimationDelay, 22 'animation-delay': osAnimationDelay 23 }); 24 25 var osTrigger = ( trigger ) ? trigger : osElement; 26 27 osTrigger.waypoint(function() { 28 osElement.addClass('animated').addClass(osAnimationClass); 29 },{ 30 triggerOnce: true, 31 offset: '90%' 32 }); 33 }); 34 } 35 onScrollInit( $('.animate-this') ); 36 onScrollInit( $('.staggered-animation'), $('.staggered-animation-container') ); 37 38})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.