Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(function( $ ){
- var wow1 = new WOW(
- {
- boxClass: 'projects-counter', // animated element css class (default is wow)
- animateClass: 'counter counter-analog2', // animation css class (default is animated)
- offset: 0, // distance to the element when triggering the animation (default is 0)
- mobile: true, // trigger animations on mobile devices (default is true)
- callback: function(box) {
- // the callback is fired every time an animation is started
- // the argument that is passed in is the DOM node being animated
- $('.projects-counter').counter({});
- },
- scrollContainer: null // optional scroll container selector, otherwise use window
- }
- );
- var wow2 = new WOW(
- {
- boxClass: 'clients-counter', // animated element css class (default is wow)
- animateClass: 'counter counter-analog2', // animation css class (default is animated)
- offset: 0, // distance to the element when triggering the animation (default is 0)
- mobile: true, // trigger animations on mobile devices (default is true)
- callback: function(box) {
- // the callback is fired every time an animation is started
- // the argument that is passed in is the DOM node being animated
- $('.clients-counter').counter({});
- },
- scrollContainer: null // optional scroll container selector, otherwise use window
- }
- );
- var wow3 = new WOW(
- {
- boxClass: 'availability-counter', // animated element css class (default is wow)
- animateClass: 'counter counter-analog2', // animation css class (default is animated)
- offset: 0, // distance to the element when triggering the animation (default is 0)
- mobile: true, // trigger animations on mobile devices (default is true)
- callback: function(box) {
- // the callback is fired every time an animation is started
- // the argument that is passed in is the DOM node being animated
- $('.availability-counter').counter({});
- },
- scrollContainer: null // optional scroll container selector, otherwise use window
- }
- );
- wow1.init();
- wow2.init();
- wow3.init();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement