React Anime.js Wrapper
A library for using Anime.js in React.
Installation
Using npm
npm i react-anime-js
Using yarn
yarn add react-anime-js
Imports
You'll want this at the top of your file:
import Anime, { anime } from 'react-animejs-wrapper';
For more information on what can be passed into the config parameter for Anime components please see the documentation for Anime.js.
Sample Components
Sliding One Element
<Anime
  style={{
    backgroundColor: 'lightgrey',
    width: '125px',
    height: '28px',
    padding: '5px',
    borderRadius: '5px',
  }}
  config={{
    translateY: [0, 25],
    scale: [0.8, 1],
    loop: true,
    duration: 1500,
    easing: 'spring(1, 100, 12, 0)',
  }}
  >
  <div>Search</div>
</Anime>

Stagger Multiple Elements
<Anime
  style={{
    display: 'flex',
    flexDirection: 'column',
    backgroundColor: 'lightgrey',
    alignItems: 'left',
    width: '160px',
    height: '115px',
  }}
  config={{
    translateX: [-35, 0],
    scale: [0, 1],
    loop: true,
    delay: anime.stagger(100, { start: 200 }),
    easing: 'spring(1, 80, 13, 0)',
  }}
  >
  <div
    style={{
      backgroundColor: '#f1f1f1',
      width: '150px',
      margin: '5px',
      padding: '5px',
    }}
  >
    Transit
  </div>
  <div
    style={{
      backgroundColor: '#f1f1f1',
      width: '150px',
      margin: '5px',
      padding: '5px',
    }}
  >
    Food
  </div>
  <div
    style={{
      backgroundColor: '#f1f1f1',
      width: '150px',
      margin: '5px',
      padding: '5px',
    }}
  >
    Events
  </div>
</Anime>

More Examples Coming Soon!