Skip to content

Feature Request: Add leave prop to slide out when the Animate component is removed #3

Description

@JosephScript

Is it feasible to add a leave prop to the Animate component? I have a 3rd party component that controls the mount and unmount of my Animate component, and if I had a way to animate it out on unmount this would be perfect!

<HOC
    name="email"
    component={<Animate appear leave show>}
/>

This is equivalent to:

{error.email ? <Animate appear leave show>{error.email}</div> : null}

Once the object is populated the Animate animates in perfectly. However, I can't figure out a way to Animate it again on unmount. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions