StealThis .dev

Line Shadow Text

Large heading with an animated shadow made of repeated lines offset below. Multiple text-shadows create a striking striped shadow effect with a smooth animated offset.

Open in Lab
css javascript svelte vue
Targets: TS JS HTML React Svelte Vue

Code

Line Shadow Text

A bold heading with an eye-catching shadow made of repeated, evenly-spaced line shadows that animate their offset to create a dynamic depth effect.

How it works

Multiple text-shadow layers are stacked, each offset slightly further than the last, with alternating opacity to create a lined/striped look. A CSS animation shifts the shadow offset over time.

Features

  • Striped shadow effect — multiple layered text-shadows
  • Animated offset — shadow drifts smoothly via keyframes
  • Customizable — shadow color, line count, and animation speed
  • Lightweight — pure CSS effect with minimal JS