Skip to content
Alea0.1
Pro
  1. Alea
  2. Components
  3. Effects
  4. Burst and Marquee

EffectsAlea Pro

Burst and Marquee

A small burst of sparks for a real success, and a loop of logos or quotes that pauses on hover.

import { Burst, Marquee, burst } from '@alea/pro';

Examples

Burst

A small celebration on a real success: sparks from the control. Nothing happens with reduced motion.

Marquee

Logos or quotes in a loop that pauses on hover or focus; with reduced motion it stops and scrolls.

  • Northwind

  • Globex

  • Initech

  • Umbrella

  • Stark

  • Wayne

  • Acme

Props

Burst props

Wraps a control: each press fires a small burst from it.

PropTypeDefaultDescription
classNamestring-
countnumber-

Marquee props

Logos or quotes moving in a loop. The copy is hidden from screen readers; with reduced motion it stops and scrolls instead.

PropTypeDefaultDescription
aria-labelstring-Names the region, e.g. "Customers".
classNamestring-
direction"left" | "right"'left'
durationnumber30Seconds per loop. Default 30.
fadebooleantrueFade the edges. Default true.
pauseOnHoverbooleantruePause while hovered or focused. Default true.

Specs

Generated from the source: the variants in the types, the states and tokens in the CSS, and the motion patterns that apply. The grids render the real component in both themes; the numbers are measured from the page.

Burst

Dark and light
Every color comes from theme tokens, so it follows data-theme (and presets like Graphite) on the page or any wrapper. Contrast is checked in both themes.
Styling hooks
.alea-burst-host

Marquee

Variants
directionleftright
States
Hover (CSS)Focus inside
Dark and light
Every color comes from theme tokens, so it follows data-theme (and presets like Graphite) on the page or any wrapper. Contrast is checked in both themes.
Styling hooks
.alea-marquee.alea-marquee-track.alea-marquee-group
Data attributes
data-fadedata-direction=rightdata-pause

Accessibility

  • Burst is decoration and does nothing with reduced motion.
  • Marquee lists each item once for screen readers (the copy is hidden and inert), pauses on hover and focus, and scrolls instead of moving with reduced motion.

Do and don't

Do

  • Burst only on success that matters: a like, a goal reached.

Don't

  • Don't put actions people need inside a marquee.
Tested with axe, keyboard and screen reader roles