By Chason ArthurRevision 103.015Updated
ZYEL Lab / By Chason Arthur

Learn by changing
the code.

Run an experiment. Trigger a failure. Inspect the decision that fixes it. Explore application state, transactions, identity, Git contributions, concurrent work and production delivery.

Each Lab explains its runtime and sample-data limits. Use the browser examples, follow a tutorial and download the matching source when you are ready to run it locally.

Engineering field notes / Zyel Lab

Build it. Inspect it.
Understand the tradeoffs.

Interactive experiments beside Celebration.js. Explore application state, data, identity, concurrency, service recovery and release safety. Ten advanced studies include independent environments, inspectable source, comparisons and how-to guides.

Computer tutorial recording playbook — prepare a result-first script, readable screen capture, captions and a verified learning package. Historical review record for the four original demos. The ten advanced lessons include their own runnable source, tests and independent setup package.

All experiments shown.

Read implementation evidence and release limits → Browser settings are local to this browser and device. Synthetic previews do not send real orders, verify real credentials, or prove production scale.

Experimental drop #001

Confetti, fireworks,
and web effects.

Celebration.js is a free, dependency-free effects engine for confetti, fireworks, lightning, plasma, portals, elemental magic, advanced particle physics, generated sound cues, and dramatic error states.

Download JavaScript
Further studies

Inspect the boundary.

Additional workshops and prototypes keep their own stated implementation scope.

The playground

Click around.
Rate the explosions.

Every preset is numbered so you can compare effects quickly. Sound starts only after your first interaction and can be turned off at any time.

Showing 60 new effects, including lightning, plasma, portals, elemental forces, impacts, and kinetic systems.

Start anywhere

Make it come from the action.

Pass a selector, DOM element, or event target. Every success preset can originate behind that element. Random draws from all 140 styles; round-robin plays every style once before repeating.

Celebration.fireFrom('#shipButton', {
  animation: 'random',
  sound: 'random',
  anchorPoint: 'center',
  behind: true,
  alert: false
});
LIVE TARGET

The burst is masked until it clears the button.

Visual sequence builder

Direct the whole moment.

Stack numbered effects, sounds, origins, delays, physics, and screen treatments. Preview the result, then copy the generated JavaScript.

Sequence settings
StagesDelay is measured from the previous stage.
Two-minute install

One script.
One call.

Download the library or link directly while prototyping. For production, serve your own copy so you control caching and releases.

1 / Add the script
<script src="/js/celebration.js"></script>
2 / Fire an effect
Celebration.fire({
  animation: 118,
  sound: 'explosive',
  intensity: 'huge',
  alert: false
});
Celebration.js v2.0.3Readable source · dependency-free · MIT License
Download source ↓ Read documentation → Read Zyel field notes → View license →
Small API, big range

Compose a whole moment.

Choose effects by number or name, rotate automatically, queue precise stages, add physics, and reproduce any result with a seed.

01

Direct control

playAnimation() and playSound() give you separate control over visual and audio feedback.

02

Smart rotation

Choose random, non-repeating round-robin, or a specific number/name independently for visuals and sounds.

03

Timed queues

Build bottom, top, and four-corner finales with per-step animation, sound, origin, and delay settings.

04

Error states

Render a full-screen visual with a custom icon, title, and real error message—without adding another dependency.

05

Physics fields

Add attraction, repulsion, edge collisions, directional cones, particle scaling, and automatic device performance limits.

06

Screen treatments

Combine source outlines with shake, flash, blur, chromatic distortion, mobile haptics, and source-derived colors.

07

Named combos

Launch reusable directors such as supernovaFinale, portalBreach, or everythingDetonates.

08

Deterministic motion

Pass a seed to reproduce a random selection and its particle layout exactly, or attach subtle effects to pointer movement.

Queued finale

Bottom. Top. Every corner.

Three stages, two sound cues, one call.

Made by Zyel

Free tools are useful.
Finished products are better.

Zyel is a web consulting and product studio for organizations that need strategy, design, engineering, AI, automation, and operations to work as one system.

Talk about your project

Lab discussion / Celebration.js

What would you try next?

Ask about the code, compare an approach, or describe an edge case. Reader comments are reviewed before publication.

All lab discussions

Reader comments

Open the discussion to read and add reader comments.

Read or write a comment →

Code walkthrough

Follow the implementation in code.

Use these examples alongside the steps on this page. Read the explanation before copying a snippet; source excerpts depend on the surrounding implementation, and illustrative examples are labeled.

Example 01 · Example

Honor a sound preference

The playground uses the engine’s sound switch independently of the animation. Keep a visible preference control and let the effect run quietly when sound is off.

const celebration = Celebration.getShared();
celebration.setSoundEnabled(false);
celebration.fire({
  animation: 118,
  sound: false,
  alert: false
});

Inspect the Celebration engine

Example 02 · Example

Chain two stages

Each delay is measured from the previous stage. This short sequence uses the same sequence contract as the builder above; it runs only when called by your application.

Celebration.fire({
  sound: false,
  alert: false,
  sequence: [
    { delay: 0, animation: 118, sound: false },
    { delay: 500, animation: 119, sound: false }
  ]
});

Inspect the playground’s sequence builder

Copied to clipboard.