Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 2.09 KB

File metadata and controls

47 lines (36 loc) · 2.09 KB

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 name Type Description
className String The className to set the animation
children Node! Component children that will be displayed inside of the animation
type String Type of the animation, it can be 'drawerLeft', 'drawerRight', 'drawerTop' or 'drawerBottom'
isActive Boolean Active the animation
duration number The animation duration in seconds, the default value is 0.4 second.
transfer number The active animation deslocation in percentage, the default value is 110%.
transferEnter number The 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.