Package Exports
- animate-bg-canvas
- animate-bg-canvas/animate-bg-canvas.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 (animate-bg-canvas) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
animate-bg-canvas

使用说明
1. 浏览器
使用 animate-bg-canvas-browser.js 这个文件
// 新建对象时,会自动呈现动画效果
let animateCanvas = new AnimatedCanvasBG()
// 其它操作
animateCanvas.play() // 方块动起来
animateCanvas.stop() // 方块不动
2. Vue
npm i animate-bg-canvasimport { AnimatedCanvasBG } from "animate-bg-canvas"
export default {
mounted() {
this.height = innerHeight
this.animatedBg = new AnimatedCanvasBG()
},
beforeDestroy() {
this.animatedBg.destroy()
}
}log
- 2023-02-14 v0.1