Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

FloatingLines

Three layered families of glowing lines cross the surface and bend around the pointer.

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

Usage

import { FloatingLines } from '@gaudi/design-system/animations/FloatingLines';
<FloatingLines 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.
  • Eight curves in each family converge and separate at different angles and brightnesses. The local pointer lens relaxes smoothly after the pointer leaves.
  • Visual idea inspired by Floating Lines from React Bits (MIT + Commons Clause). Independently implemented for Gaudi; no React Bits code or assets are included.