im doing a page, I've manage to create a one page website, with a fixed menu.
My problem: I want to add the scrollto.element jquery to my page, already tried Smint, Ariel Flesler and Infinty.js, none worked.
Im new to jQuery but I think I can setup things with the guide/tutorial but its just not working.
Can someone help out?
My Temporary Test Host: http://styleeuclides.site50.net/#home
If you're just looking to animate a scroll to an element, the following should do it:
$('.button1').click(function() {
$('html, body').animate({
scrollTop:$('element-to-scroll-to').scrollTop()
}, 250);
});
Something like that should do the trick.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.