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

About useSwitchTransition How to watch Animate end? #23

Open
23233 opened this issue Dec 3, 2022 · 0 comments
Open

About useSwitchTransition How to watch Animate end? #23

23233 opened this issue Dec 3, 2022 · 0 comments

Comments

@23233
Copy link

23233 commented Dec 3, 2022

How to clear children style On anmiated after !

        {
                transition((_, stage: Stage) => (
                    <div
                        style={{
                            transition: '.22s',
                            opacity: stage === 'enter' ? 1 : 0,
                            transform: transformFromType?.[stage],
                            position: 'absolute',
                            width: width, 
                            height: height,
                            left: 0,
                            right: 0,
                            margin: 'auto',
                        }}
                    >
                        <Outlet />
                    </div>
                ))}
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

1 participant