Shadow Tamer — CSS

Tame box-shadow and filter: 19 levels of shadows, blur, drop-shadow and neumorphism. An advanced CSS visual effects game.

What you learn in this game

filter: drop-shadow() draws a shadow from the element's own shape, not its box: transparent parts cast no shadow. Its first number, offset-x, moves the shadow sideways.

The third number in drop-shadow() is the blur radius: the shadow's edge is blurred that far. The bigger it is, the softer the shadow, like light through a cloth.

box-shadow draws a shadow from the element's box. Unlike drop-shadow(), it has a spread: a fourth number that grows (positive) or shrinks (negative) the shadow before it is blurred.

text-shadow works like any other shadow, but for each letter: offset-x, offset-y, blur and colour. There is no spread.

opacity sets how see-through an element is. 1 means fully visible, 0 not visible at all, and a number in between makes it partly transparent.

filter changes how an element looks once it is painted. blur() blurs the whole element, its contents too, unlike a shadow's blur, which blurs only the shadow.