Jump between div with preserve the scrolling animation but without see scrolling the div in the middle | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Jump between div with preserve the scrolling animation but without see scrolling the div in the middle

Basically I have 6 or 7 blocks and I need to implement a persistent quick link menu to jump up and down the sections. It’s easy to do it using scrollify but I’d love to jump for example from block 3 to block 7 without seeing the imbetween blocks scrolling in the viewport. Still I want to preserve the scrolling animation when performing such actions.

14th Feb 2017, 1:03 PM
Filippo
1 Answer
+ 12
scrollBy() scrollTo() <div id="id"> location = location+"#"+div.id;
14th Feb 2017, 1:12 PM
Valen.H. ~
Valen.H. ~ - avatar