Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(window).bind("scroll", function() {
- if ($(this).scrollTop() > 560 ) {
- $("#image_to_fade").fadeIn(1000);
- } else {
- $("#image_to_fade").stop().fadeOut();
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement