24 lines
450 B
JavaScript
24 lines
450 B
JavaScript
|
|
||
|
"use strict"
|
||
|
|
||
|
jQuery(document).ready(function($){
|
||
|
$more_img = $("#wrapper:not(.ip-header) img").fadeTo(0, 0);
|
||
|
|
||
|
function fade_img(){
|
||
|
$more_img.each(function(i) {
|
||
|
a = $(this).offset().top + $(this).height();
|
||
|
b = $(window).scrollTop() + $(window).height();
|
||
|
if (a < b) $(this).fadeTo('fast',1);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
$(window).load(function(d,h){
|
||
|
fade_img();
|
||
|
});
|
||
|
|
||
|
$(window).scroll(function(d,h) {
|
||
|
fade_img();
|
||
|
});
|
||
|
|
||
|
|
||
|
});
|