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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -