Skip to content

done classname for appearing #327

@koba04

Description

@koba04

Do you want to request a feature or report a bug?

bug?

What is the current behavior?

    <CSSTransition in appear timeout={timeout} classNames="fade">
        {props.children}
    </CSSTransition>

The above case, CSSTransition applies the following classNames in the order.

  • .fade-appear
  • .fade-appear.fade-appear-active
  • .fade-enter-done

Is adding .fade-enter-done classname to a component an expected behavior?
I think it would be better the classname will be .fade-appear-done instead of .fade-enter-done.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/m4mb9Lg3/4/).

https://codesandbox.io/s/7w59nmnn1x

What is the expected behavior?

A component is added .fade-appear-done instead of .fade-enter-done.

Which versions, and which browser / OS are affected by this issue? Did this work in previous versions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions