javascript - Using below code i want to to ScrollTop 1px the dynamic tabs on active of every content -


on active want dynamic home-tab-content scroll 1px in every click.

$('.home-menu-div ol').click(function(){     var ref = $(this).data('ref');     $('.home-tab-content').hide();     $('#home-tab-content'+ref).fadein();     $(".home-menu-div ol").removeclass('active');     $(this).addclass('active'); }); 

http://192.168.1.200/

you can use scrolltop specific element. example if want scroll body element in 1 px this:

$('body').scrolltop( $('body').scrolltop() + 1 ); 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -