Animation
Interruptible hover swell
Interruptible hover swell: A tile whose two stage hover swell always starts from its current size, so darting the pointer on and off never makes it snap.
Using Interruptible hover swell
Interruptible hover swell uses the inline preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
stageOneScale | number | 1.1 | From 1 to 1.4; step 0.05 |
peakScale | number | 1.6 | From 1.1 to 2.4; step 0.05 |
duration | number | 0.5 | From 0.15 to 1.5; step 0.05 |
accent | color | #7C5CFF | No additional limit in the metadata. |
showValue | boolean | true | No additional limit in the metadata. |
Which frameworks are available for Interruptible hover swell?
Interruptible hover swell is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Interruptible hover swell depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx.
What accessibility details are visible in Interruptible hover swell?
The React source for Interruptible hover swell includes: attributes and handlers (aria-label). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Interruptible hover swell handle reduced motion?
Interruptible hover swell reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduced ? REDUCED_SECONDS : duration * RETURN_FACTOR; ease: reduced ? "easeOut" : EASE_RETURN. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.