Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

Hyperspeed

Paired light trails travel along a curving road and accelerate while the background is held.

AnimationsBackgrounds@gaudi/design-system/animations/HyperspeedView in StorybookSource

Installation

pnpm add github:ahmadassaf/design-system

Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.

import { Hyperspeed } from '@gaudi/design-system/animations/Hyperspeed';

Usage

import { Hyperspeed } from '@gaudi/design-system/animations/Hyperspeed';
<Hyperspeed height={500} paused={false} />

Examples

Playground

Storybook

API

12 props

Accessibility

The canvas is decorative and hidden from assistive technology. Keep important content in children and provide a pause control for continuous animation. Reduced motion renders a static frame; unsupported WebGL retains the styled container and content.

Notes

  • The playground layers a Gaudi header, hero and working documentation links above the effect. The Demo content switch hides only this foreground; canvas size, animation phase and pause state are retained.
  • Two opposing streams of paired lights follow a perspective road. Hold a non-interactive part of the background to accelerate smoothly; releasing slows it down without jumping its position. Use speed for a keyboard-accessible or controlled alternative.
  • Visual idea inspired by Hyperspeed from React Bits (MIT + Commons Clause). Independently implemented for Gaudi; no React Bits source, shaders or assets are included.