vue-firework

0.3.0 • Public • Published

vue-firework

To use the firework component developed by vue, click on the component.

Vue 版的点击页面出现火花效果,可以全局也用,也可以在单个元素中使用。

demo

https://vue-firework.now.sh/

install

# npm  
npm install vue-firework --save
# yarn 
yarn add vue-firework

import and use

Import for global usage

import Vue from 'vue'
import VueFirework from 'vue-firework'
 
Vue.use(VueFirework)

Or on a single component

import VueFirework from 'vue-firework'...
components: { VueFirework }
...

config

  • el. The element that needs to bind firework effects.
  • fireCanvasStyle. Configuration of firework left and top properties.

todo

  • Custom color

MIT

MIT

Package Sidebar

Install

npm i vue-firework

Weekly Downloads

4

Version

0.3.0

License

MIT

Unpacked Size

244 kB

Total Files

14

Last publish

Collaborators

  • simida