Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

DarkVeil

Broad illuminated folds drift across a dark surface, with sharp creases and deep intervening shadows.

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

Usage

import { DarkVeil } from '@gaudi/design-system/animations/DarkVeil';
<DarkVeil 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.
  • Smooth, asymmetric sheets gather light along their creases and remain dark on the opposite side.
  • Visual idea inspired by Dark Veil from React Bits (MIT + Commons Clause). Independently implemented for Gaudi; no React Bits code or assets are included.