Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

MicroSlats

Rounded 10×25px slats catch broad rolling swells, crest glints and a fading pointer wake.

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

Usage

import { MicroSlats } from '@gaudi/design-system/animations/MicroSlats';
<MicroSlats 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 slat dimensions; slat height stays fixed through each swell.
  • Visual idea inspired by MicroSlats from React Bits. Independently implemented for Gaudi from the rendered visual reference; no React Bits source code, shaders or assets are included.