Vue.js component for particles.js with a full customization support!
yarn add @dxcat/vue-particles.js --save --dev
Or
npm install @dxcat/vue-particles.js --save-dev
import Vue from 'vue'
import VueParticlesJS from '@dxcat/vue-particles.js'
Vue.use(VueParticlesJS)
<template>
<div id="app">
<vue-particles></vue-particles>
</div>
</template>
you can modify the particlesData prop to use your own particles.js config object.
<template>
<div id="app">
<vue-particles :particlesData="particlesData"></vue-particles>
</div>
</template>
<script>
import particlesJSConfig from './particlesjs-config.json'
export default {
data: function () {
return {
particlesData: particlesJSConfig
}
}
}
</script>
You can generate your particlesjs-config.json file from particles.js website.