Can we have different durations in useSpring? #1381
Unanswered
mattfranciswork0
asked this question in
Support
Replies: 1 comment
-
If you make a sandbox I could maybe help further. Off the top of my head what you're looking to do is have seperate const [props, api] = useSpring(() => (
{
from: {opacity: 0, transformX: '-50%'}
}
))
useEffect(() => {
api.start({
to: {opacity: 1},
config: {duration: 1000}
})
api.start({
to: {transformX: 0},
config: {duration: 3000}
})
}) |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi all,
is it possible to do something like:
Beta Was this translation helpful? Give feedback.
All reactions