arwes / arwes

Futuristic Sci-Fi UI Web Framework.

Home Page:https://arwes.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Animator unmount children on flow exited

romelperez opened this issue · comments

A dynamic component such as a modal, alert or notification component can be rendered or made visible only under certain conditions. For example, a modal component can be visible only if the respective button to open it is clicked.

The Animator component can render its children elements only if its animator state is different exited so this can be accomplished.

This way, the animator children HTML elements are rendered only when visible, if the animations hide its elements on state exited.

  • Add Animator component unmountOnExited: boolean = false prop to render its children only when its flow is different from exited if enabled.