Hover Depth
Interactive & Advanced · Static · pure CSS
The word lies flat until hovered, then pops up off the page as a stacked shadow extrudes underneath. CSS-only interactive depth.
CSS
/* Hover Depth — generated with TEXT-FX
* HTML: just put the class on any element.
* Font: 'Unbounded', sans-serif (load from Google Fonts).
*/
.text-effect {
font-family: 'Unbounded', sans-serif;
font-weight: 400;
letter-spacing: 4px;
text-transform: uppercase;
}
.text-effect {
color: hsl(70 80% 70%);
cursor: pointer;
transition: transform 0.19s ease, text-shadow 0.19s ease;
}
.text-effect:hover {
transform: translate(-4px, -4px);
text-shadow: 1px 1px 0 hsl(70 55% 28%), 2px 2px 0 hsl(70 55% 28%), 3px 3px 0 hsl(70 55% 28%), 4px 4px 0 hsl(70 55% 28%), 5px 5px 0 hsl(70 55% 28%), 6px 6px 0 hsl(70 55% 28%);
}
Pure CSS — just add the .text-effect class to any element.
- Category
- Interactive & Advanced
- Type
- Static
- Browser support
- Extrudes on :hover via a stacked offset shadow — static preview is flat.
- Capabilities
- pure