Skip to content
Menu

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.

ControlTypeDefaultPreview limits
stageOneScalenumber1.1From 1 to 1.4; step 0.05
peakScalenumber1.6From 1.1 to 2.4; step 0.05
durationnumber0.5From 0.15 to 1.5; step 0.05
accentcolor#7C5CFFNo additional limit in the metadata.
showValuebooleantrueNo 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.

Connect your agent

Related open components