NETFLIX

Change Text

Content

Text Size
50

Text Color

Text Background

Edit Shadow

Length
60
Angle
45
Blur
1
Intensity
0.8

Color

Output Code

1function generateLongShadow({ length = 60, angle = 45, blur = 1, intensity = 0.8, color = #3d0000 }) {
2  const rad = (angle * Math.PI) / 180;
3  const shadows = [];
4  for (let i = 1; i <= length; i++) {
5    const x = Math.round(Math.cos(rad) * i);
6    const y = Math.round(Math.sin(rad) * i);
7    const alpha = intensity * (1 - i / length);
8    shadows.push(`${x}px ${y}px ${blur}px rgba(${color},${alpha})`);
9  }
10  return shadows.join(", ");
11}
12
13// applicazione
14element.style.textShadow = generateLongShadow({});