3D Extrude
3D & Depth · Static · pure CSS
Stacked offset text-shadows build a solid 3D extrusion with depth and direction controls, plus an optional float. The quintessential chunky 3D title.
CSS
/* 3D Extrude — generated with TEXT-FX
* HTML: just put the class on any element.
* Font: 'Space Mono', monospace (load from Google Fonts).
*/
.text-effect {
font-family: 'Space Mono', monospace;
font-weight: 700;
letter-spacing: 0px;
text-transform: none;
}
.text-effect {
color: hsl(253 82% 72%);
text-shadow:
1px 1px 0 hsl(253 55% 26%),
2px 2px 0 hsl(253 55% 26%),
3px 3px 0 hsl(253 55% 26%),
4px 4px 0 hsl(253 55% 26%),
5px 5px 0 hsl(253 55% 26%),
6px 6px 0 hsl(253 55% 26%),
7px 7px 0 hsl(253 55% 26%),
8px 8px 0 hsl(253 55% 26%),
9px 9px 0 hsl(253 55% 26%),
10px 10px 0 hsl(253 55% 26%),
11px 11px 0 hsl(253 55% 26%),
13px 15px 14px rgba(0,0,0,.4);
animation: text-effect-float 3.3s ease-in-out infinite;
}
@keyframes text-effect-float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
Pure CSS — just add the .text-effect class to any element.
- Category
- 3D & Depth
- Type
- Static
- Browser support
- All modern browsers
- Capabilities
- pure