Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create option to "delay" a TransitionPresence #351

Open
ReneDrie opened this issue Jun 28, 2024 · 1 comment
Open

Create option to "delay" a TransitionPresence #351

ReneDrie opened this issue Jun 28, 2024 · 1 comment

Comments

@ReneDrie
Copy link
Contributor

In the Immersive Web version we have a useEnabledAnimation hook. These will wait for some certain value to be set to true before calling the animation setups. Ideally I think we just want to have this option with the useAnimation hooks in some ways as well. This would make it easier to delay animations while waiting for content to be loaded or something like that.

I'm not sure what would be the nicest way to implement this, perhaps something together with a TransitionPresence which is "active" by default, but you could also set it to inactive or something?

@leroykorterink
Copy link
Collaborator

@ReneDrie I think this can be implemented using the useBeforeUnmount hook, I'll try to make an example when I have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants