Advertisement
srikat

Untitled

Nov 19th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. jQuery(function( $ ){
  2.  
  3. var boxClass = ['projects-counter','clients-counter','availability-counter'];
  4.  
  5. var wow = {};
  6.  
  7. $.each(boxClass, function( index, value ){
  8. wow[value] = new WOW(
  9. {
  10. boxClass: value, // animated element css class (default is wow)
  11. animateClass: 'counter counter-analog2', // animation css class (default is animated)
  12. offset: 0, // distance to the element when triggering the animation (default is 0)
  13. mobile: true, // trigger animations on mobile devices (default is true)
  14. callback: function(box) {
  15. // the callback is fired every time an animation is started
  16. // the argument that is passed in is the DOM node being animated
  17. $('.'+value).counter({});
  18. },
  19. scrollContainer: null // optional scroll container selector, otherwise use window
  20. }
  21. );
  22.  
  23. wow[value].init();
  24. });
  25.  
  26. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement