2.0.2 • Published 6 years ago
styled-anime v2.0.2
styled-anime
styled-anime
is simple library for create animatable styled component.
Installation
yarn add styled-anime
or
npm i styled-anime
Example
import * as React from "react";
import { render } from "react-dom";
const MovingBox = styledAnime.div`
width: 100px;
height: 100px;
background: #ddd;
`(function() {
// Write your animation code like using 'animejs, anime({ ... })'
return {
loop: true,
duration: 3000,
tarnsformX: [0, 50, 0]
};
});
const container = document.getElementById("container");
render(<MovingBox />, container);
Spec
here: index.d.ts
2.0.2
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.2.3
6 years ago
0.2.2
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.9
6 years ago
0.1.8
6 years ago
0.1.7
6 years ago
0.1.6
7 years ago
0.1.5
7 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago