Skip to content
← Back to archive
[ EXP-011 / DEMONSTRATION ]

Border Trace.

Draw a continuous frame around an active control.

HoverReactWeb APIsCSSpointertouchkeyboard
Category
Hover
Collection
Demonstration study
Stack
React / Web APIs / CSS
Chronology
Undated / exploration
EXP-011 / LIVE PREVIEW
Loading experiment…
REDUCED MOTION / STATIC RESULT

Reduced motion is enabled. This preview displays the stable result without zoom, displacement or scrambling.

01 / Overview

Draw a continuous frame around an active control. An independent interaction study built for the Resources archive.

02 / How it works

Animate the dash offset of a rectangular SVG outline on hover or focus.

03 / Implementation

Actual React demo source. Import this component with the archive stylesheet and pass variant (borderTrace), values, playing, replay and reduced props. The image demos use /images/resources-bg.png.

Loading implementation…

04 / Parameters

ParameterTypeRangeDefault
DurationNumber0.4–3s1.2s

05 / Usage & accessibility

Enable playback, then move across the preview. Hover controls also respond to focus and activation; cursor studies offer arrow-key movement and tap positioning. Reduced motion keeps a static result.

Requires a current browser with Web Animations, requestAnimationFrame and Pointer Events. Background imagery is decorative; essential labels remain in the document. The magnetic target supports tap and keyboard activation.

Related experiments.