@gluestack-style/animation-resolver
Version:
A gluestack-style plugin for resolving animation properties, utilizing animation libraries.
26 lines (15 loc) • 815 B
Markdown
# @gluestack-style/animation-resovler
## Installation
To use `@gluestack-style/animation-resovler`, all you need to do is install the
`@gluestack-style/animation-resovler` package:
```sh
$ yarn add @gluestack-style/animation-resovler
# or
$ npm i @gluestack-style/animation-resovler
```
## Usage
In this example, we are creating a new instance of the AnimationResolver class, passing an object with the 'aliases' property as an argument. The aliases object maps the aliases :initial, :animate, and :exit to their corresponding animation props.
## Example of creating a styled component:
Once the plugin is initialized, you can use the styled function to create styled components with animation props. Here's an example:
More guides on how to get started are available
[here](https://style.gluestack.io/).