Interactive online courses HTML Academy
2026-03-09 14:10 Diff

Now let’s look at a few interesting tricks for working with shadows.

The first technique allows you to make the shadow visible from only one side of the element.

To do this, set the shadows to negative stretch and positive feathering, and then cast the shadow in the desired direction. Negative stretch will make the feathered shadow smaller than the element, and the offset will only show the edge of the shadow on one side.

This technique allows you to simulate gradients using inner shadows.