Relief
Soft clay
Text
Type
Colour
Ground
Motion
About this effect
Relief makes the letters solid. Every word is a block of matte clay in its own colour, lit from one side with a pale highlight on the edges facing the light and a thick, shaded side falling away from it, and a soft shadow on the page underneath. The light swings slowly back and forth overhead, so the thickness slides round the letters as if you were walking past them.
It is all text-shadow: a highlight, four steps of the darkened colour for the depth and a blurred cast shadow, every offset taken from the cosine and sine of one animated angle. The words stay real text, coloured in turn.
Depth sets how thick the letters are and swing how far the light travels. Round, heavy faces look most like clay.
- Formats
- React, HTML
- No dependencies
- Built with
- CSS and a little JS
- Default font Outfit
- Plays
- Loop, In view, On load, Hover
- Reduced motion
- Respected
- Shows the finished frame
Accessibility. The words are real text, read as they are. Under reduced motion the light stays still, up and to the left.
Also known as 3d text css, clay text effect, embossed text, extruded text, text shadow 3d, soft 3d lettering.
Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.