I would just listen for scroll on the window and update the start position to the current scroll…
Kye Hohenberger
11

Have you ever made this? Thats not as easy as you can imagine.

There are 2 problems in this approach. First of all, defaultStyle is ignored on subsequent renders, it’s applied only on first mount of Motion. So you cant change the start position of animaion on-fly. And the second problem — when you change scrollTop/scrollLeft, onscroll event will be fired on the element, so you need to recognize the difference between user action and manual change.

Thats the reason i’ve asked my question — trying to deal with it from yesterday.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.