particles.js v1.1.0 Release Notes

Release Date: 2015-05-09 // over 6 years ago
  • 🆕 New features

    • density_auto on resize event (number of particles depending on canvas area)

    pJS.interactivity.onresize = { density\_auto: boolean, density\_area: number // number of particles = pJS.particles.nb \* (canvas width \* canvas height / 1000) / density\_area}
    

    • modes on resize event

    pJS.interactivity.onresize.mode = 'out' or 'bounce'
    

    • color random particles

    pJS.particles.color\_random = boolean
    

    • opacity animation particles

    pJS.particles.opacity.anim = { enable: boolean, speed: number, opacity\_min: number, sync: boolean }
    

    🛠 Fixes / Optimizations

    • destroy function: fix console error (pJS)
    🚚 • pushParticles / removeParticles functions
    • resize window listener