JSPM

jquery-particles

1.12.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 725
  • Score
    100M100P100Q85735F
  • License MIT

Particles effect in jQuery

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

jsDelivr

<script src="https://cdn.jsdelivr.net/npm/jquery-particles@1.10.4/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.