To use the firework component developed by vue, click on the component.
Vue 版的点击页面出现火花效果,可以全局也用,也可以在单个元素中使用。
# npm
npm install vue-firework --save
# yarn
yarn add vue-firework
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 }
...
- el. The element that needs to bind firework effects.
- fireCanvasStyle. Configuration of firework left and top properties.
- Custom color