Multiple configs for separate animations in useTrail #1407
Unanswered
tomchambers2
asked this question in
Support
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Use case: a list where each item contains multiple elements with separate animations. For example it has a bullet point and text. I'd like the bullet point to scale and the text to fade in.
This works so far because I can break up the animations by selecting relevant parts of useTrail and passing them to the children - except if I want to have different configs for each animation.
Example where this would be useful: https://codesandbox.io/s/ecstatic-bassi-to73v?file=/src/App.js
This works, but I'd like to have the config for the bullet go past 1 and bounce, while the content would be linear fade from 0-1.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions