JSPM

animate-bg-canvas

0.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15
  • Score
    100M100P100Q42118F
  • License GPL

animated canvas bg, blue, blocks

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

2023-02-15 09 28 25

使用说明

1. 浏览器

使用 animate-bg-canvas-browser.js 这个文件

// 新建对象时,会自动呈现动画效果
let animateCanvas = new AnimatedCanvasBG()

// 其它操作
animateCanvas.play()  // 方块动起来
animateCanvas.stop()  // 方块不动

2. Vue

npm i animate-bg-canvas
import { 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