particles.js
particles.js copied to clipboard
Multiple particles
Dear, how can I apply the particles and more than 1 backgroud? I tried in many ways, but this was the closest I could get, but only one executes. The other carries the particles, but they stand still. I'm sorry for my english.
<canvas
class="via-bg-bg-referencia">
<canvas
class="via-bg-indicadores-sucesso">
window.onload=function() { var indicadores = Particles.init({ selector: '.via-bg-indicadores-sucesso', color: '#ef8a4e', maxParticles: 150, connectParticles: true, sizeVariations: 8, minDistance: 70, }); var referencia = Particles.init({ selector: '.via-bg-referencia', color: '#d3d9db', maxParticles: 150, connectParticles: true, sizeVariations: 8, minDistance: 70 }); };
Having the same problem now. Is there any solutions for this so far ?