Hi I am currently have a function to reveal images on this site, if you scroll down on homepage you will see the image being reveals as well as on this page.
Here's the JS, however the scrollTop part doesn't seem to be working on IE and Firefox, my developer wrote this and I am trying to fix it myself without his help..
revealImages: function() {
var currentScroll = 0;
var totalScroll = $(document).height() - $(window).height();
var newScroll = $('body').scrollTop();
$('.image-flip').each(function() {
if(newScroll + $(window).height() >= $(this).offset().top + 200 && currentScroll < newScroll) $(this).addClass('flipped');
});
currentScroll = newScroll;
}