Package Exports
- facode
- facode/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (facode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
帧动画代码插件
浏览器使用环境使用
npm install facode@2.0.1
import FaCode from 'facode'
new Facode(options)命令行工具版本
npm install facode@1.0.11 -goptions
| 参数名 | 取值 | 默认值 | 说明 |
|---|---|---|---|
| id | String | null | 帧动画盒子ID |
| imgList | Array | [] | 图片网络资源地址集合 |
| mode | String | 'js' | 帧动画实现方式, 取值范围 'js','css','canvas' |
| speed | int | 200 | 逐帧动画间隔时长 |
| loading | Boolean | true |
是否需要展示loading |
| admissionIndex | Number | 0 | 入场动画最后一张索引(仅支持canvas和js模式) |
| loadingFn | Function | null | 自定义生成loading动画 |
注意事项
- 如果打包工具不支持class私有属性,可以借助
babel的@babel/plugin-proposal-private-methods插件