Give your HTML
an expressive edge.
GPU effects for text, images and SVG.
Animate with GSAP or on its own.
Run in your app, then choose your coding agent and project installation. Installs domfx guidance; support depends on your agent.
Read the API guideExplore the effects
From the gallery
to your page.
Install domfx, choose an element and add your first effect.
Install domfx.
Add the browser package to your project.
Attach the effect.
Choose text, an inline SVG or an image. Attach an effect to follow its visible shape.
Choose how it moves.
Let it animate on its own, or control its time and intensity with GSAP.
Attach your first effect
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 GSAPtimeline.addLabel('ignite', 0.5)// 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.
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 worksBefore you build.
Do I need GSAP?
No. Automatic animation runs on its own. Use native GSAP tweens to sequence time and intensity.
Standalone guideDo 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 APIWhat happens without WebGPU?
The original HTML stays available. Effects require WebGPU and supported capture conditions; reduced motion suppresses animated output by default.
Check browser supportHow 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