@tsparticles/ribbons

tsParticles ribbons bundle — easily create animated ribbons, ribbon bursts and ribbon falling effects. Ready to use components available for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.
2,502,144 8,995
Install
npm install @tsparticles/ribbons
Latest Version:4.4.0
License:MIT
Last Updated:Oct 23, 2026
Links: GitHub  ·  npm
Maintainer: matteobruni

banner

tsParticles Ribbons Bundle

jsDelivr npmjs npmjs GitHub Sponsors

tsParticles ribbons bundle to create animated ribbons effects with a single API.

Demo website: https://ribbons.js.org

Exposed API

The package API is centered on ribbons.

import { ribbons } from "@tsparticles/ribbons";

await ribbons(options);
await ribbons("canvas-id", options);

await ribbons.init();
const fireOnCanvas = await ribbons.create(canvas, defaultOptions);
await fireOnCanvas(options);

console.log(ribbons.version);

Installation

pnpm add @tsparticles/ribbons

How to use it

import { ribbons } from "@tsparticles/ribbons";

await ribbons({
  count: 5,
  positionX: 50,
});

With advanced ribbon shape customization:

import { ribbons } from "@tsparticles/ribbons";

await ribbons({
  ribbonOptions: {
    count: 70,
    oscillationDistance: {
      min: 120,
      max: 170,
    },
  },
});

Options

Main options:

  • count Integer (default: 5)
  • ticks Number (default: 200)
  • positionX Number (default: 50, in percent)
  • position Object (x/y) — deprecated, use positionX instead; y is ignored (emitter always spawns at top-of-canvas)
  • emitterSize Object (width/height, default 100/0, in percent) — spawn width is controlled by emitterSize.width (default 100); not always full width
  • colors Array<String>
  • ribbonOptions Object (particles.shape.options.ribbon)
    • Includes darken: { enable: true, value: 30 } by default
  • scalar Number (default: 1)
  • zIndex Integer (default: 100)
  • disableForReducedMotion Boolean (default: true)

The ribbons bundle disables roll, rotate, tilt, and wobble on ribbon particles by default for better shape stability. The emitter spawns from positionX across a strip whose width is controlled by emitterSize.width (default 100%), with downward movement for a falling-from-top effect. The emitter is always positioned at the top of the canvas.

Deprecated aliases still accepted:

  • particleCount (use count)
  • position (use positionX)
  • origin (use positionX)

Related Packages

@tsparticles/particles

Minimal tsParticles particles bundle — lightweight particle engine without confe...

6,297,197 8,995
@tsparticles/engine

Easily create highly customizable particle, confetti and fireworks animations an...

20,171,445 8,997
@tsparticles/basic

Basic tsParticles bundle — minimal core engine with only the essential features...

18,651,336 8,997
@tsparticles/slim

Slim tsParticles bundle — core engine with essential plugins, presets, and inter...

14,833,710 8,997
tsparticles

Full-featured tsParticles bundle — create stunning particle, confetti and firewo...

11,242,027 8,997

Version History

Version Released License
4.4.0 MIT
4.3.2 MIT
4.3.1 MIT
4.3.0 MIT
4.2.1 MIT