项目
在 GitHub 查看
plus1tv/react-anime
关于
✨ (ノ´ヮ´)ノ*:・゚✧ React 的超简单动画库!
网站与应用开发可以做什么
- Animate nearly all CSS, SVG, & DOM attributes by adding a prop with their name (eg. opacity, backgroundColor, transform inputs like translateX).
- Nested animations are as easy as putting an <Anime> component inside another.
- Cascading animations through delay prop.
- Add elements dynamically and have them animate in.
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- +1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文react-anime
(ノ´ヮ´)ノ*:・゚✧ 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.
Installation
npm i react-anime -S
Features
Animate nearly all CSS, SVG, & DOM attributes by adding a prop with their name (eg.
opacity,backgroundColor,transforminputs liketranslateX).Nested animations are as easy as putting an
<Anime>component inside another.Cascading animations through
delayprop.Add elements dynamically and have them animate in.
TypeScript definitions included.
Usage
import Anime, { anime } from 'react-anime';
let colors = [ 'blue', 'green', 'red' ];
const MyAnime = (props) => (
<Anime delay={anime.stagger(100)} scale={[ 0.1, 0.9 ]}>
{colors.map((color, i) => <div key={i} className={color} />)}
</Anime>
);
探索相关项目
加载中…