Advertisement
srikat

Untitled

Nov 20th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. jQuery(function( $ ){
  2.  
  3. var wow1 = new WOW(
  4. {
  5. boxClass: 'projects-counter', // animated element css class (default is wow)
  6. animateClass: 'counter counter-analog2', // animation css class (default is animated)
  7. offset: 0, // distance to the element when triggering the animation (default is 0)
  8. mobile: true, // trigger animations on mobile devices (default is true)
  9. callback: function(box) {
  10. // the callback is fired every time an animation is started
  11. // the argument that is passed in is the DOM node being animated
  12. $('.projects-counter').counter({});
  13. },
  14. scrollContainer: null // optional scroll container selector, otherwise use window
  15. }
  16. );
  17.  
  18. var wow2 = new WOW(
  19. {
  20. boxClass: 'clients-counter', // animated element css class (default is wow)
  21. animateClass: 'counter counter-analog2', // animation css class (default is animated)
  22. offset: 0, // distance to the element when triggering the animation (default is 0)
  23. mobile: true, // trigger animations on mobile devices (default is true)
  24. callback: function(box) {
  25. // the callback is fired every time an animation is started
  26. // the argument that is passed in is the DOM node being animated
  27. $('.clients-counter').counter({});
  28. },
  29. scrollContainer: null // optional scroll container selector, otherwise use window
  30. }
  31. );
  32.  
  33. var wow3 = new WOW(
  34. {
  35. boxClass: 'availability-counter', // animated element css class (default is wow)
  36. animateClass: 'counter counter-analog2', // animation css class (default is animated)
  37. offset: 0, // distance to the element when triggering the animation (default is 0)
  38. mobile: true, // trigger animations on mobile devices (default is true)
  39. callback: function(box) {
  40. // the callback is fired every time an animation is started
  41. // the argument that is passed in is the DOM node being animated
  42. $('.availability-counter').counter({});
  43. },
  44. scrollContainer: null // optional scroll container selector, otherwise use window
  45. }
  46. );
  47.  
  48. wow1.init();
  49. wow2.init();
  50. wow3.init();
  51.  
  52. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement