Skip to content

schmt5/motion-one-react

 
 

Repository files navigation

Motion One React Component

A declarative react component for the Motion One animaion library.

How to use

Use it as a React Component.

import { spring } from 'motion';

<MotionOne
  animation={{
    x: 200,
  }}
  transition={{
    duration: 1,
    easing: spring(),
  }}
>
  <p>This child has an animation</p>
</MotionOne>

Dependency

Motion One

Happy Building ♡

About

A template for publishing a React + TypeScript package to npm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 63.9%
  • JavaScript 36.1%