Jump to content
Search Community

How to show the onLeave animation for a child when the parent is hidden in Flip?

singlexyz
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...