Skip to content

(ノ´ヮ´)ノ*:・゚✧ A super easy animation library for React!

License

Notifications You must be signed in to change notification settings

brilacasck/react-anime

 
 

Repository files navigation

react-anime

Npm Package License Unit Tests Coverage Tests Dependency Status devDependency Status

(ノ´ヮ´)ノ*:・゚✧ A super easy animation library for React built on top of Julian Garnier's anime.js.
Just place an <Anime> component and what you want animated inside.

Documentation | Demos | Anime.js

Installation

npm i react-anime -S

Features

  • Animate nearly all CSS, SVG, & DOM attributes by adding a prop with their name (eg. opacity, backgroundColor, translateX).

  • Nested animations are as easy as putting an <Anime> component inside another.

  • Animations can react to changes in state.

  • Cascading animations through delay prop.

  • TypeScript/Flow definitions included.

Usage

import React from 'react';
import Anime from 'react-anime';

const App = (props) => (
  <Anime delay={(e, i) => i * 100}
         scale={[.1, .9]}>
    <div className="blue"/>
    <div className="green"/>
    <div className="red"/>
  </Anime>
);

About

(ノ´ヮ´)ノ*:・゚✧ A super easy animation library for React!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%