singlexyz Posted July 23, 2024 Posted July 23, 2024 When add `.active` class, the `.text` trigger the `onEnter` animation, it's fine. When remove the `.active` class, `onLeave` still runs, but because the `.large` set `display: none` immediately, so the animation is invisible. How can this situation be resolved? Is it only possible by changing the HTML structure? See the Pen Porzxmv by nayuxuohz (@nayuxuohz) on CodePen.
Solution Rodrigo Posted July 23, 2024 Solution Posted July 23, 2024 Hi, Maybe something like this, using fade and absolute: https://gsap.com/docs/v3/Plugins/Flip/static.from()#special-properties See the Pen wvLWZBW by GreenSock (@GreenSock) on CodePen. Hopefully this helps. Happy Tweening!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now