No.105 · Cards
Halo Frame
A hairline frame with a comet of light endlessly orbiting its edge — pure CSS, driven by an animated @property angle.
The prompt
Written for the variant you picked above: Amber quote
Wrap content in a 1px frame (10px radius) whose border carries a slow orbiting light. Build it with a padding: 1px wrapper whose background is a dark hairline colour, and two pseudo-elements behind the content, each a conic-gradient rotated by a registered @property --angle that animates 0 → 360deg linearly and infinitely (speed prop, default 7s). The first gradient is the comet: transparent for most of the circle, then a short run through three colours (colors prop: [a, b, c], dim → bright → pale) and back — a head roughly 20% of the circumference wide. The second gradient starts 180° ahead and is a much thinner, 55%-strength sliver at 70% opacity, so a faint counter-light chases the comet from the opposite side. Because the frame is only 1px, the light reads as travelling along the border rather than glowing. Under reduced motion the light rests at the top-right corner. Selected variant — Amber quote (quote): Amber quote (HaloQuote): comet colours #e8a24a → #f3b45f → #f6c98a at the default 7s; inside, a quote card on the page colour with a mono uppercase amber kicker ("Our intent") and a large italic serif line (clamp 1.5–2.06rem, 1.22 line height, 30ch max). This selection takes precedence over references to other themes or options in the general brief. Implement this selected appearance; do not add a variant picker or alternative appearances unless requested. Implementation requirements: Use React and TypeScript. Keep the component self-contained, with uniquely scoped CSS and no animation libraries. Include required imports, styles and font setup in the result. Interaction: None — it's ambient. The light orbits continuously. Motion: One @property angle animated 0 → 360° over 7s linear; both conic layers share it, offset by 180°. Accessibility: Purely decorative pseudo-elements; content stays a semantic <blockquote>. Reduced motion stops the orbit. Responsive behavior: Fluid width; the quote text scales with clamp(). Speed and colours are props. Preserve keyboard access, visible focus and reduced-motion behavior. Keep fictional demo data and simulated service calls in a separate usage example; expose callbacks for real actions and recover from rejected requests. Keep usage-example links inside the demo: use local buttons or prevent navigation. Demonstration links must not navigate to Vitrine routes or open other pages; preserve real URL support in the reusable component itself. Verify the result at narrow and wide viewport sizes, with keyboard input and reduced motion enabled.
Notes
- Interaction
- None — it's ambient. The light orbits continuously.
- Motion
- One @property angle animated 0 → 360° over 7s linear; both conic layers share it, offset by 180°.
- Accessibility
- Purely decorative pseudo-elements; content stays a semantic <blockquote>. Reduced motion stops the orbit.
- Responsive
- Fluid width; the quote text scales with clamp(). Speed and colours are props.