Package Exports
- jquery-particles
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jquery-particles) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
jquery-particles
jQuery plugin for tsParticles
Installation
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>
How to use
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.