You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using two differents CSSTransitionGroup, one for enter transition and the other for leave transition. I do this because I have the same leave transition for the children, but I have differententer transition depending on which children is mounted and these CSSTransitionGroup are nested deeper which cause my enter transition and my leave transition to happen both at the same time.
For now I just put a longer delay in CSS but when there's no leave animation to do (i.e. when first loading) there's a small noticeable delay where nothing happen.
I know I can workaround it directly in JS or with ReactTransitionGroup but it would be nice to have an option to add a class to the CSSTransitionGroup itself when it's animating so we can continue to work exclusively with CSS. 😄
The text was updated successfully, but these errors were encountered:
That's a bit tough to do in the current API, but if you could check out #24 we probably could support that in the new proposed api, as it provides a lot more callback hooks. Maybe see if that could meet your use case? It might even avoid your need for two groups as it allows different animations per child
I'm using two differents CSSTransitionGroup, one for
enter
transition and the other forleave
transition. I do this because I have the sameleave
transition for the children, but I have differententer
transition depending on which children is mounted and these CSSTransitionGroup are nested deeper which cause myenter
transition and myleave
transition to happen both at the same time.For now I just put a longer delay in CSS but when there's no leave animation to do (i.e. when first loading) there's a small noticeable delay where nothing happen.
I know I can workaround it directly in JS or with ReactTransitionGroup but it would be nice to have an option to add a class to the CSSTransitionGroup itself when it's animating so we can continue to work exclusively with CSS. 😄
The text was updated successfully, but these errors were encountered: