0.0.6-beta.16 • Published 3 years ago
@bodymovin-parser/component-react v0.0.6-beta.16
component-react
react动效组件
何时应用
基于ae-bodymovin的web动效组件
须知
本组件使用Element.animate动画帧方法, 支持chrome36和firebox48以上版本
代码演示
<AEComponent
json={json}
counts={'Infinity'}
play={true}
onload={() => {}}
onPause={() => {}}
onPlay={() => {}}
/>
效果展示
属性
参数 | 说明 | 类型 | 默认值 | 版本 |
---|---|---|---|---|
source | 数据源 | JSON|string | '' | 0.0.1 |
autoPlay | 自动播放 | boolean | false | 0.0.1 |
infinite | 是否循环播放 | boolean | false | 0.0.1 |
duration | 播放时间 | number | 1000 | 0.0.1 |
onFinish | 播放完成回调 | function | () => {} | 0.0.1 |
onLoad | 资源加载完成 | function | () => {} | 0.0.1 |
onStart | 播放完成回调 | function | () => {} | 0.0.1 |
0.0.6-beta.16
3 years ago
0.0.6-beta.15
3 years ago