Skip to content

Animations before unmounting (and in general) #161

Closed
@chenglou

Description

@chenglou

(Context: my pull request for fixing the bootstrap modal example: #160).
Animation in componentDidMount works, but doesn't in componentWillUnmount for obvious reason.

Let's say I have three divs side by side. When the middle one closes, it does a shrinking animation and disappears, and the one on the right moves left to take its place. Currently it takes a bit of circumventing to make this work (and kills the nice structure and semantic react's aiming for), and at the end it kind of defeats the purpose of the diff rendering technique.

I was wondering if there'd be a clean way, maybe even a new api, to make this work well.

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