Observe
Reveal only when the element enters the viewport.
LIVE PACKAGE SOURCE · v0.1.3
Real @simt-dev/web-ui modules and CSS, running locally. Toggle theme or motion, scroll the examples and move a fine pointer across the scene.
01 / CONTROLS
Every control below is styled by src/styles.css. The demo buttons only update the local status line.
Choose an action to inspect its local response.
02 / AMBIENT
Hover to pause. Switch motion to Reduced to return to the static list.
One shared motion contract
03 / REVEAL
Scroll the cards into view. The shared observer never hides content in Reduced mode.
Reveal only when the element enters the viewport.
Add the final class once and stop observing the target.
Keep the same content readable when motion is reduced.
04 / QUESTIONS
Use Tab and Enter or Space. Native disclosure still works without JavaScript.
No. The browser owns keyboard operation, focus and the open state.
Transitions stop. Questions and answers remain immediately available.
The native details element opens and closes without an animation.
05 / POINTER
Move a fine pointer across the stage. The effect is decorative and never required to understand the content.
LIVE SCENE
Pointer coordinates become local CSS variables. No pointer data leaves this document.
06 / RUNTIME
The header controls call the real package functions. This playground does not persist the choices.