This repository is now part of https://github.com/matteobruni/tsparticles
jQuery plugin for tsParticles
npm install jquery-particles
or from jsDelivr
<!-- first include tsParticles -->
<script src="https://cdn.jsdelivr.net/npm/tsparticles@1.12.7/dist/tsparticles.min.js"></script>
<!-- then include jquery wrapper -->
<script src="https://cdn.jsdelivr.net/npm/jquery-particles@1.12.7/dist/jquery.particles.min.js"></script>
HTML
<div id="tsparticles"></div>
$("#tsparticles")
.particles()
.init(
{
/* params */
},
function (container) {
// container is the particles container where you can play/pause or stop/start.
// the container is already started, you don't need to start it manually.
}
);
// or
$("#tsparticles")
.particles()
.ajax("particles.json", function (container) {
// container is the particles container where you can play/pause or stop/start.
// the container is already started, you don't need to start it manually.
});
*For all options you can checkout the readme here.