Brickslab.

@brickslab/ui-web

Diagonal stripes with optional scroll animation and customizable angle and width

Animated Stripes

Props

PropTypeDéfautRequisDescription
anglenumber45Angle of stripes in degrees
stripeWidthnumber10Width of each stripe in pixels
animatebooleanfalseEnable scroll animation
speednumber8Animation speed in seconds
gapnumber10Gap between stripes

Usage

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

export function MyComponent() {
  return (
    <div className="relative w-full h-screen bg-white">
      <StripedPattern angle={45} stripeWidth={10} animate speed={8} />
      <div className="absolute inset-0 flex items-center justify-center">
        <h1 className="text-4xl font-bold">Stripes</h1>
      </div>
    </div>
  );
}

Variations

Static Stripes

Static

Vertical Stripes

Vertical