HTML-aware shapes
Text, rounded boxes and emojis become a pixel-based collision mask, including the openings inside letters.
DOM → geometryReal-time visual effects that understand the shape of your content. Ordinary HTML becomes an interactive physical environment.
Move your mouse through accumulated snow to sweep it off a ledge. Watch it land on the content below.
01 / THE ENGINE
Every feature card is a real collision surface. The effect above is running on this page, not a prerecorded animation.
Text, rounded boxes and emojis become a pixel-based collision mask, including the openings inside letters.
DOM → geometrySnow accumulates, melts, grows overhangs and rolls off edges. Falling clumps can land on the next element.
Mass redistributionBrush real accumulated snow with your cursor. Moving mass changes the snowbank instead of merely moving passing flakes.
Pointer interactionFast raindrops hit the shape of a letter or card, splash outward and occasionally run off the surface onto another ledge.
Swept collisionsDistant particles drift behind content while foreground weather interacts with the geometry. No additional markup required.
Mask compositingIndependent effect modules reuse the geometry, canvas lifecycle and rendering loop. Vanilla JavaScript, zero runtime dependencies.
Extensible modules02 / INTEGRATION
Point aweFX at your existing HTML with CSS selectors. Configure the effect without adding wrappers or canvas markup.
// Start snow on existing content
import { aweFX } from './src/index.js';
aweFX.init({
effect: 'snow',
text: 'h1, h2',
box: '.feature-card',
});