Animation

Description

Animation is a VTEX Component that display some animations in their children props. This Component can be imported and used by any VTEX App.

📢 Disclaimer: Don't fork this project, use, contribute, or open issue with your feature request.

Table of Contents

Usage

You should follow the usage instruction in the main README.

To import it into your code:

import { Animation } from 'vtex.store-components'

You can use it in your code like a React component with the jsx tag: <Animation />.

<Animation> 
  This is an animated text! \o/
</Animation>

Configuration

Prop nameTypeDescription
classNameStringThe className to set the animation
childrenNode!Component children that will be displayed inside of the animation
typeStringType of the animation, it can be 'drawerLeft', 'drawerRight', 'drawerTop' or 'drawerBottom'
isActiveBooleanActive the animation
durationnumberThe animation duration in seconds, the default value is 0.4 second.
transfernumberThe active animation deslocation in percentage, the default value is 110%.
transferEnternumberThe not active animation deslocation in percentage, the default value is 0%.

Styles API

You should follow the Styles API instruction in the main README.

CSS Namespaces

For now this component does not have any css namespaces.