Skip to content

CSSTransition with in set to false doesn't apply any classes #576

Closed
@timothympace

Description

@timothympace

What is the current behavior?

When using CSSTransition with in set to false, I don't see any class names get applied to the child element.

What is the expected behavior?
I expect there to be some class applied by default.

My use case is along the lines of a slideshow where there is one slide showing at a time, but for purposes of SEO, each slide should always be rendered in the DOM. Below is a Sandbox illustrating the basic idea. In the sandbox, you can see that no class names are applied by default, and once you do a full rotation through the slides, everything is good.

(also, ignore the fact that there's no animations/transitions, just illustrating the absense of default classnames)

Could you provide a CodeSandbox demo reproducing the bug?

https://codesandbox.io/s/trusting-dan-clrid

If there's another way to be doing this, let me know. I might be misusing CSSTransition in this context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions