You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
468 B
14 lines
468 B
$(document).ready(function() {
|
|
$(window).scroll( function(){
|
|
$('.fadein').each( function(i){
|
|
|
|
var bottom_of_element = $(this).offset().top + $(this).outerHeight();
|
|
var bottom_of_window = $(window).scrollTop() + $(window).height();
|
|
|
|
if( bottom_of_window > bottom_of_element ){
|
|
$(this).animate({'opacity':'10'},1000);
|
|
}
|
|
|
|
});
|
|
});
|
|
}); |