Brickslab.Toolsv2.1.1

@brickslab./ui-web

Grid lines moving downward creating a continuous flow effect

Flow Grid

Props

PropTypeDéfautRequisDescription
sizenumber40Grid cell size in pixels
strokeWidthnumber1Width of grid lines
speednumber8Animation speed in seconds
colorstring"rgba(255, 255, 255, 0.1)"Color of the grid lines
Override rapide

Tous les paramètres listés dans cette table sont overrideables via les props. Utilisez ce squelette comme point de départ.

<MyComponent
  size={40}
  strokeWidth={1}
  speed={8}
  color="rgba(255, 255, 255, 0.1)"
/>
sizestrokeWidthspeedcolor

Usage

tsx
import { AnimatedGridPattern } from "@brickslab./ui-web";

export function MyComponent() {
  return (
    <div className="relative w-full h-screen bg-black">
      <AnimatedGridPattern size={40} strokeWidth={1} speed={8} />
      <div className="absolute inset-0 flex items-center justify-center">
        <h1 className="text-4xl font-bold text-white">Flow Grid</h1>
      </div>
    </div>
  );
}

Variations

Fine Grid with Fast Movement

Fast Flow

Thick Lines Slow Movement

Slow Flow