marcbruederlin / particles.js

A lightweight, dependency-free and responsive javascript plugin for particle backgrounds.

Home Page:https://marcbruederlin.github.io/particles.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Particles.init not returning anything

jhonalino opened this issue · comments

I'm trying to pause animation with

  var particles = Particles.init({
         // options
       });
  particles.pauseAnimation();

however particles is undefined
the partcicles keep moving/animating

@jhonalino Are you initializing particles.js on window load? Check this fiddle if you need a working example: https://jsfiddle.net/b1b0q42x/