Add Depth to a CSS Illustration with Box Shadow

InstructorJhey Tompkins

Share this video with your friends

Send Tweet

In this lesson, we use box-shadow to create the shadow cast from the Egghead spectacles onto the Egghead shell. At first glance, we might opt for a box-shadow on the lenses themselves. But, we need to duplicate those elements so we can clip away the parts of the shadow we don't need without affecting the lenses.