Possible to combine animations on the same value #3284
Unanswered
silaskoehler
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to combine animations on the same value with the vanilla JS Version of motion?
Let's say we have a fade up animation inView() but also have an animation on
scroll()
also for translateY.When i tried it, it seams to me that one animation interrupt the other. i found a workaround with animating a css Variable:
--y1
for scroll and--y1
for inView and then set--y
tocalc(var(--y1) + var(--y2))
and settransform
totranslateY(var(--y))
. But it would be nice if i can have all of this without the css workaround.Beta Was this translation helpful? Give feedback.
All reactions