ExpertRefresh

Element / Scroll to anchor  

1) Scroll down to #comment. $('html,body').animate({ ______: '+=' + $('#comment').offset().top + 'px' }, 'fast');







<script src=""></script> <div style='height: 2000px;'></div> <div id='comment'>My comment</div> <script> $('html,body').animate({ scrollTop: '+=' + $('#comment').offset().top + 'px' }, 'fast'); </script>


References



n/a