vue-particles
vue-particles copied to clipboard
Question: How to live update the particlesNumber?
Hi,
When the particlesNumber param is updated during the vue rendering, the number of particles don't update. What is the way to do this please?
<template>
<div id="myComponent">
<vue-particles :particlesNumber="count"
color="#FFF" shapeType="circle" :particleOpacity="0.7" :particleSize="5" :moveSpeed="0.5"
linesColor="#FFF" :linesWidth="1" :lineLinked="true" :lineOpacity="0.2" :linesDistance="150"
:hoverEffect="false" hoverMode="grab" :clickEffect="false" clickMode="push"
>
</vue-particles>
</div>
</template>
<script>
export default {
name: 'myComponent',
props: ['count']
}
</script>
Thks