预览地址:https://ciming.github.io/vue-partivleground/
npm
npm install --save vue-particleground
yarn
yarn add vue-particleground
<template>
<Partivleground line-color="#fff" dot-color="#fff" class="partivleground">
<div id="intro" >
<h1>Particleground</h1>
<p>A Vue components for snazzy background particle systems</p>
</div>
</Partivleground>
</template>
<script>
import Partivleground from 'vue-particleground'
export default {
name: 'App',
components: {
Partivleground
}
}
</script>