Remove inline CSS after a transition has ended #1339
Unanswered
nachtfunke
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.
-
Hello!
As far as I understand the upcoming version of react-spring comes now with
onRest
for useTransition. But until it is released, I was wondering if there is some way of maybe hooking into that specific event in the current stable version?Context: I have an Overlay that uses a transform to animate. Inside that overlay there should be a fixed element, but due to a long existing bug,
position: fixed
inside containers that are transformed will not work. There are some simple ways around this, for example to remove the inline style after the transition has ended. Usually I do this with thetransitionEnd
event, but that's not working in this context. Is there maybe some way to achieve this in the current version of react-spring?9I'm thankful for every idea.
TLDR; I was wondering if there is a way to remove the inline style from a transitioned element after the transition has ended, because otherwise I won't be able to use
position: fixed
Beta Was this translation helpful? Give feedback.
All reactions