From the gallery
to your page.

Install domfx, choose an element and add your first effect.

  1. Install domfx.

    Add the browser package to your project.

  2. Attach the effect.

    Choose text, an inline SVG or an image. Attach an effect to follow its visible shape.

  3. Choose how it moves.

    Let it animate on its own, or control its time and intensity with GSAP.

    Attach your first effect
StandaloneTypeScript
import { attachFire } from '@domfx/browser';

const fire = attachFire(target, {
  host,
  clock: 'auto',
  intensity: 0.8,
});

// On unmount: fire.dispose();
See the full example

Your GSAP timeline.
A new layer.

Sequence effects alongside your existing animation. Control their time and intensity with the GSAP timeline you already use.

Build with GSAP
Sequence excerptGSAP
// effect was created with clock: 'manual'.
// Use the GSAP timeline you already own.
timeline.to(effect, {
  time: 4,
  intensity: 0.4,
  duration: 4,
  ease: 'none',
}, 'ignite');

// On unmount: kill your tweens and dispose the effect.
play() / pause()
Run the sequence or hold a moment.
seek() / reverse()
Move through the effect in either direction.
timeScale()
Set the pace with the controls you know.
Still HTML.Select the text. Follow the link.

Your HTML stays
interactive.

Text stays selectable. Links keep working. domfx adds a decorative layer alongside your element, leaving the original HTML in place.

How domfx works

Before you build.

Do I need GSAP?

No. Automatic animation runs on its own. Use native GSAP tweens to sequence time and intensity.

Standalone guide
Do I need a particular framework?

The browser API takes a DOM element. Attach after mount and dispose on unmount in the framework you use.

Explore the API
What happens without WebGPU?

The original HTML stays available. Effects require WebGPU and supported capture conditions; reduced motion suppresses animated output by default.

Check browser support
How do I install it?

Install @domfx/browser from npm. For timeline control, add gsap. The @domfx/gsap lifecycle helpers are optional.

View the package on npm

Give your next page
an expressive edge.

One element is all it takes to start.

Read the setup guide

Search domfx

Effects and documentation

Effects

Documentation

    ↑ ↓ to move · Enter to openEsc to close