Skip to content

Wrapper: @tsparticles/jquery ​

Official jQuery plugin wrapper for tsParticles.

Install ​

bash
pnpm add @tsparticles/jquery @tsparticles/engine @tsparticles/slim

Quick setup flow ​

  1. Install package and load it in your jQuery setup.
  2. Initialize features once using slim/all as needed.
  3. Apply plugin on target element with options.

The plugin mounts into each selected DOM element directly, so the element does not need an id:

js
const container = await $(".particles-background").particles().load(options);

The same element selection can be used with .ajax(url) to load options from a JSON URL.

Monorepo references ​

Readme ​