2.0.2 • Published 5 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
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago
0.2.3
5 years ago
0.2.2
5 years ago
0.2.1
5 years ago
0.2.0
5 years ago
0.1.9
5 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago