Prinzhorn / scrollmeister

Open-source JavaScript framework to declaratively build scrolling experiences
https://www.scrollmeister.com/
MIT License
37 stars 5 forks source link

scroll-into-view behavior #40

Open Prinzhorn opened 6 years ago

Prinzhorn commented 6 years ago

It requires the ^scroll behavior and exposes a method to bring the element into the viewport (by default top/top aligned). The hash-navigation behavior already implements most of what is needed.

el.scrollIntoView.scroll();