Advertisement
Webulous

Untitled

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