Usage of ViewTimeline #3561
-
|
Hi, I have a question regarding the I've checked the implementation and it seems that Motion only uses scroll-driven animations when there is no target parameter. However in most of our use cases, we use a target parameter. It seems that Motion could use Can you please confirm this is the case? Maybe a note should be added to the documentation here as I felt it was not clear which one uses the native implementation or not. Also, is there some plan to use ViewTimeline internally whenever possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Yeah no immediate plans but definitely want to do it. For now there is a scroll listener still registered regardless of whether a ScrollTimeline is registered (with useScroll) - but this doesn’t affect the performance of the animation itself |
Beta Was this translation helpful? Give feedback.
Yeah no immediate plans but definitely want to do it. For now there is a scroll listener still registered regardless of whether a ScrollTimeline is registered (with useScroll) - but this doesn’t affect the performance of the animation itself