Advertisement
Webulous

Untitled

Apr 29th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.     $('#service1 div').each(function(){
  3.     var imagePos = $(this).offset().top;
  4.  
  5.     var topOfWindow = $(window).scrollTop();
  6.       if (imagePos < topOfWindow+500) {
  7.         $(this).addClass("fadeInLeftBig");
  8.         $(this).addClass("animated");
  9.       }
  10.     });
  11.  
  12.  
  13.     $('#service2 div').each(function(){
  14.     var imagePos = $(this).offset().top;
  15.  
  16.     var topOfWindow = $(window).scrollTop();
  17.       if (imagePos < topOfWindow+500) {
  18.         $(this).addClass("fadeInUpBig");
  19.         $(this).addClass("animated");
  20.       }
  21.     });
  22.  
  23.     $('#service3 div').each(function(){
  24.     var imagePos = $(this).offset().top;
  25.  
  26.     var topOfWindow = $(window).scrollTop();
  27.       if (imagePos < topOfWindow+500) {
  28.         $(this).addClass("fadeInRightBig");
  29.         $(this).addClass("animated");
  30.       }
  31.     });
  32. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement