Response title
This is preview!
- $('#footer').appear();
- $('#footer').on('appear', function(){
- $('#fixed_div').fadeOut();
- });
- $('#footer').on('disappear', function(){
- $('#fixed_div').fadeIn();
- });
- HTML-BASIC
- <div id="footer">
- <div class="footer-wrapper">
- Footer details here
- </div>
- </div>
- <div id="fixed_div">
- <ul>
- <li><h1>details here</h1></li>
- <li><h1>details here</h2></li>
- </ul>
- </div>
- var secondval = $('#footer').offset().top;
- $(window).scroll(function(){
- var firstval = $(document).scrollTop();
- if(firstval >= secondval)
- {
- $('#fixed_div').fadeOut();
- }else{
- $('#fixed_div').fadeIn();
- });
© 2013 jQuery Foundation
Sponsored by and others.