Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

SideRays

Broad, diffuse shafts cascade from the upper-right corner and fade rapidly into the surface.

AnimationsBackgrounds@gaudi/design-system/animations/SideRaysView 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 { SideRays } from '@gaudi/design-system/animations/SideRays';

Usage

import { SideRays } from '@gaudi/design-system/animations/SideRays';
<SideRays height={360} paused />

Examples

Playground

Storybook

API

10 props

Accessibility

The canvas is decorative and hidden from assistive technology; children remain accessible. Reduced motion shows a still frame, and unavailable graphics use a static color fallback. Provide a visible pause control when motion continues beside meaningful content. Keep text contrast independent of the moving artwork.

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.
  • Four overlapping shafts vary softly in brightness while most of the surface remains quiet.
  • Visual idea inspired by Side Rays from React Bits (MIT + Commons Clause). Independently implemented for Gaudi; no React Bits code or assets are included.