StealThis .dev

Striped Pattern

Beautiful diagonal or horizontal repeating stripes using CSS gradients with customizable colors, angle, and size via CSS custom properties.

Відкрити в Lab
css javascript vue svelte
Цілі: TS JS HTML React Vue Svelte

Код

Striped Pattern

Elegant repeating stripes using CSS repeating-linear-gradient. Fully customizable via CSS custom properties for angle, color, size, and opacity.

How it works

  1. repeating-linear-gradient creates seamless diagonal or horizontal stripes
  2. CSS custom properties (--stripe-angle, --stripe-color, --stripe-size) allow dynamic theming
  3. A subtle animated drift can be enabled for a living background effect
  4. Multiple stripe layers can be composited for richer patterns

Customization

  • --stripe-angle: Direction of stripes (default 135deg for diagonal)
  • --stripe-color-1 / --stripe-color-2: Alternating stripe colors
  • --stripe-size: Width of each stripe band
  • Optional slow CSS animation drifts the pattern continuously

When to use it

  • Section backgrounds and dividers
  • Card background textures
  • Loading state placeholder patterns
  • Decorative hero overlays