Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

PatternWaves

A nine-pixel dot lattice shades folded fabric with narrow illuminated creases and localized ripples.

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

Usage

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

Examples

Playground

Storybook

API

10 props

Accessibility

The canvas is decorative and hidden from assistive technology. Foreground children remain readable and interactive. Provide a pause control for continuous motion, and place text on a contrasting surface. Reduced motion displays a still frame; unavailable WebGL uses a static color fallback.

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.
  • Scale changes the CSS-pixel spacing of the dots; light and shadow describe the fabric folds.
  • Visual idea inspired by PatternWaves from React Bits. Independently implemented for Gaudi from the rendered visual reference; no React Bits source code, shaders or assets are included.