An open API service indexing awesome lists of open source software.

https://github.com/viewstools/animations

Views animations wrapper around react-spring
https://github.com/viewstools/animations

Last synced: 12 months ago
JSON representation

Views animations wrapper around react-spring

Awesome Lists containing this project

README

          

# @viewstools/animations

Animations wrapper around [react-spring](https://github.com/drcmda/react-spring)
with an API closer to what Views would use internally.

For React DOM we only expose a `Spring` component as in Views we do timing animations through CSS.
Use it like:

```
import { Spring } from '@viewstools/animations/dom'

{
styles => (
//... do something with the styles object it will have the updated
// paddingTop value
)
}

```

For React Native we expose a `Spring` and `Timing` instead. Spring is the same
interface that DOM has -just import it from `@viewstools/animations/native`.
Use `Timing` like:

```
import { Timing } from '@viewstools/animations/native'

{
styles => (
//... do something with the styles object it will have the updated
// paddingTop value
)
}

```

License MIT.
(c) 2018 UXtemple Ltd.