What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
ThatPainter is reader-supported. When you buy through links on our site, we may earn an affiliate commission. Learn More
Layered 3D text is a visual illusion made by stacking repeated copies of the same words. Each copy is placed in a CSS 3D context and moved a small distance along the Z-axis. Color changes, shadows, and a slight rotation make the stack resemble solid lettering.
This technique is useful for short display headings and decorative titles. It is not a true 3D model: there are no polygons, measurable solid faces, or physically rendered extrusion geometry. The effect is built from flat HTML elements.
How the illusion works
There are two broad ways to think about 3D text. A constructive approach builds an object from separate faces, while a layered approach stacks flat copies until the eye reads them as volume. This tutorial uses the second method, following the approach demonstrated in CSS-Tricks’ 3D layered text tutorial.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errors#1 Best Overall
- PLEASE NOTE:XPPen Artist13.3 Pro drawing tablet Need to connect with computer,you need to use it with your computer or laptop, the 3 in 1 cable is included
- Drawing Tablet with Screen: Tilt Function- XPPen Artist 13.3 Pro supports up to 60 degrees of tilt function, so now you don't need to adjust the brush direction in the software again and again. Simply tilt to add shading to your creation and enjoy smoother and more natural transitions between lines and strokes
- Graphics Tablets: High Color Gamut- The 13.3 inch fully-laminated FHD Display pairs a superb color accuracy of 88% NTSC (Adobe RGB≧91%,sRGB≧123%) with a 178-degree viewing angle and delivers rich colors, vivid images, and dazzling details in a wider view. Your creative world is now as powerful as it is colorful
- Drawing Pad: One is enough- The sleek Red Dial on the display is expertly designed with creators in mind, its strategic placement allows for natural drawing postures. With just one wheel, you can effortlessly zoom in and out, adjust brush sizes, and flip the canvas—all tailored to suit the habits of everyday artists. The 8 customizable shortcut keys allow you to personalize your setup, streamlining your workflow and enhancing creative efficiency
- Universal Compatibility & Software Support:supports Windows 7 (or later), Mac OS X 10.10 (or later), Chrome OS 88 (or later), and Linux systems. Fully compatible with major creative software including Photoshop, Illustrator, SAI, and Blender 3D. Register your device to access additional programs like ArtRage 5 and openCanvas for expanded creative possibilities.
Unlike a simple text-shadow, every slice can be addressed independently. Unlike true 3D text in a modeling or motion-graphics application, the browser is not rendering a complete geometric object. That distinction matters when choosing the technique: layered CSS is convenient for a live web heading, but SVG, Canvas, WebGL, Photoshop, Illustrator, or After Effects may be better for other kinds of work.
Begin with accessible HTML
Keep one genuine text node for people and assistive technology. Put the visual duplicates in a separate container and hide that container from the accessibility tree. Otherwise, a screen reader may announce the same phrase dozens of times.
<div class="scene">
<div class="text">
<span>Layered Type</span>
<div class="layers" aria-hidden="true">
<div class="layer" style="--i: 1;">Layered Type</div>
<div class="layer" style="--i: 2;">Layered Type</div>
<div class="layer" style="--i: 3;">Layered Type</div>
</div>
</div>
</div>
The .scene establishes perspective. The .text wrapper contains the composition. The visible span is the readable front layer, while each .layer is decorative.
Index the repeated layers
Each layer needs a sequence number. A custom property such as --i lets CSS calculate its depth and color. For a static example, inline values are clear and easy to inspect:
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →<div class="layer" style="--i: 1;">Layered Type</div>
<div class="layer" style="--i: 2;">Layered Type</div>
<div class="layer" style="--i: 3;">Layered Type</div>
You can assign values with selectors instead:
.layer:nth-child(1) { --i: 1; }
.layer:nth-child(2) { --i: 2; }
.layer:nth-child(3) { --i: 3; }
The original demonstration generates 24 layers. In Emmet, .layer*24[style="--i: $;"]{Lorem ipsum} creates the repeated markup. That is useful for learning, but manually maintaining 24 copies is fragile in a real component. Use a template loop, component, preprocessor, or JavaScript generator when the phrase may change.
Rank #2
- [Perfect Compatibility]: Our silver pen display riser is compatible with a wide range of laptops, including Macbook, Dell, HP, and Lenovo. It's also suitable for 10 to 15.6-inch drawing tablets or displays, such as the XPPen Artist 2nd Gen Series, Artist 12/12 Pro/13.3 Pro/15.6 Pro/16TP, and more.
- [Lightweight and Portable]: Our aluminum pen tablet stand weighs only 0.8 lbs and comes with a storage bag, making it easy to take with you to the office or on the go.
- [Stable and Secure]: With anti-slip silicone pads, our silver stand can hold your computer, tablet, or display steady on any surface.
- [Improved Cooling]: The alloy material helps your display or tablet cool better, preventing overheating and improving performance.
- [Designed for XPPen Artists]: Our stand is fully compatible with XPPen Artist 10 2nd, Artist 12, Artist 12 2nd, Artist 13 2nd, Artist 13.3 Pro, Artist 15.6 Pro, Innovator 16, and Artist Pro 16, making it the perfect accessory for any XPPen artist.
Align every copy
The visible text should remain in normal flow so it gives the component a height. The decorative layers can then be positioned over it:
.text {
position: relative;
}
.layers,
.layer {
position: absolute;
inset: 0;
}
position: relative creates the positioning context. Absolute positioning removes the copies from layout, and inset: 0 aligns their edges. If the semantic text is also removed from flow, the parent may collapse or the stack may clip when the font size changes.
Add perspective and depth
Perspective belongs on a parent of the stack. The tutorial uses 400px as a strong starting value:
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →.scene {
perspective: 400px;
}
.scene * {
transform-style: preserve-3d;
}
A smaller perspective value exaggerates depth; a larger value makes the result flatter. transform-style: preserve-3d tells the browser to retain the children’s 3D positions instead of flattening them into one plane. If it is missing, changing Z positions may appear to do little.
Now define the layer count and spacing:
.text {
--layers-count: 24;
--layer-offset: 1px;
}
.layer {
transform: translateZ(calc(var(--i) * var(--layer-offset)));
}
With these example values, the cumulative Z separation is conceptually 24 layers × 1px = 24px. It is not guaranteed to look like a literal 24px-thick object: perspective, font size, rotation, overlap, and rendering all affect the result.
Rank #3
- Word-first 16K Pressure Levels: 1.5x* faster than ever. Initial response rate decreases to 90ms*. Accuracy increases by 20% to bring out every art project precisely what you want. Virtually no lag or broken lines. X3 pro smart chip stylus delivers much more precise and smooth lines than ever before - exceling athyper-nuanced creation and beyond
- Easy Control, One Scroll for All: Easy & efficiency Red Dial Quick Key simplifies the interface for beginners, like aspiring graphic designers and junior illustrators, allowing them to master essential controls such as brush size, navigation and zoom In/Out. This design ensures a natural hand position, reducing wrist strain during prolonged use. Additionally, with 8 customizable keys, users can easily assign frequently used functions, streamlining their workflow and minimizing interruptions
- User-friendly Setup: Understanding that many artists and designers, especially beginners, may not be tech-savvy,the new 13-inch drawing tablet features clear setup instructions for hassle-free installation. With an updated driver and intuitive interface, users can easily configure the drawing screen, and pens with a single installation. Quick access to settings allows adjustments to brightness, contrast, and color temperature (Windows only), enabling even newcomers to start creating right away
- Stunning Color Accuracy: Featuring 125% sRGB, 107% Adobe RGB, 95%display P3 color gamut, this tablet ensures every stroke has exceptional color fidelity. With 16.7 million colors at 8-bit depth, you can enjoy smooth gradients and rich transitions. The 250 cd/m² brightness and 1000:1 contrast ratio provide clearer, more vivid images, allowing artists to see their creations accurately. Ideal for both professionals and hobbyists
- Exceptional Visual Experience: Our 13.3-inch drawing tablet features a full-laminated screen with AG Film, reduces parallax and glare for a paper-like feel. With Full HD resolution and an IPS panel, enjoy vibrant colors and sharp details from a wide 178° viewing angle, ideal for drawing, animation, photography, fashion, architecture design, and much more
Use color as a lighting cue
Z separation alone often looks like misaligned duplicate text. A graduated tone gives the eye a clearer front-to-back signal. Normalize the index so the color formula scales when the number of layers changes:
.layer {
--n: calc(var(--i) / var(--layers-count));
color: hsl(200 30% calc(var(--n) * 100%));
}
Here, --i is converted into a proportional value between the beginning and end of the stack. HSL lightness is only one option; a darker rear layer, a hue shift, or a custom gradient can work better with a particular background.
Recommended Free Tools
Style the front face
Heavy display type works best because thin strokes and delicate counters can disappear when the stack is angled. A starting point might look like this:
.text {
font-family: Montserrat, sans-serif;
font-size: clamp(3rem, 12vw, 8rem);
font-weight: 900;
line-height: 0.95;
transform: rotateX(30deg);
}
.text > span {
position: relative;
z-index: 1;
color: #050509;
text-shadow: 0 0 0.1em #003;
}
The 30deg rotation and the Montserrat weight are starting values, not requirements. Increase the angle only while the front face remains legible. Keep the front color high-contrast; the decorative shading should never be the only way a reader can understand the words.
Complete copy-ready example
This compact example keeps the semantic heading in flow and isolates the repeated visual copies. It uses 24 layers, so the HTML is generated with a small script rather than manually maintained.
Rank #4
- Universal Compatibility: It's compatible with Windows 7/8/10/11, Mac 10.10 or later, Linux. Compatible with Photoshop, Illustrator, SAI, Painter, MediBang, Clip Studio, and more. It's ideal for digital drawing, animation, sketching, photo editing, 3D sculpting, and more (XP-PEN Artist12 drawing tablet must be connected to a computer to work).
- 11.6 HD IPS display: Artist12 drawing tablet is the XP-PEN’s latest smallest 1920x1080 HD display paired with 72% NTSC(100%SRGB) Color Gamut, presenting vivid images, vibrant colors and extreme detail for a stunning display of your artwork. It's pre-installed anti-reflective screen protector already. The slim touch bar can be programmed to zoom in and out, scroll up and down. Its 6 shortcut keys are customizable, XP-PEN driver allows the shortcut keys to be attuned to other different software
- Battery-free stylus with a digital eraser at the end: XP-PEN advanced P06 passive pen was made for a traditional pencil-like feel! Featuring a unique hexagonal design, non-slip & tack-free flexible glue grip, partial transparent pen tip, and an eraser at the end! Delivering technical sense, high efficiency, with a fashionable and comfortable grip, and there are 8 replacement pen nibs included with the multi-function pen holder
- XP-PEN Artist12 drawing tablet with screen is ideal for online education and remote work. Set the Artist12 drawing screen as an extended display when working from home, visually present your handwritten notes on the screen directly. Teachers and students can write and edit complicated functional equations with ease. It's compatible with XSplit, Zoom, Twitch, Microsoft Teams, ezTalks Webinar, Idroo, Scribbiar, wiziQ, and more
- XP-PEN provides a one-year warranty and lifetime technical support for all our drawing pen tablets/displays. Register your XP-PEN Artist12 drawing tablet on xp-pen web to apply for an ArtRage 5, openCanvas, or Explain Everything. Your laptop/desktop needs to have HDMI and USB-A ports available for the connection, or you need an extra converter(such as Thunderbolt to HDMI, depends on what ports that your laptop/desktop has) for the connection
<div class="scene">
<div class="text">
<span id="title">Layered Type</span>
<div class="layers" aria-hidden="true"></div>
</div>
</div>
<script>
const title = document.querySelector('#title');
const layers = document.querySelector('.layers');
const count = 24;
for (let i = 1; i <= count; i++) {
const layer = document.createElement('div');
layer.className = 'layer';
layer.style.setProperty('--i', i);
layer.textContent = title.textContent;
layers.append(layer);
}
</script>
.scene {
perspective: 400px;
padding: 3rem 1rem;
overflow: hidden;
}
.text {
--layers-count: 24;
--layer-offset: 1px;
position: relative;
width: max-content;
max-width: 100%;
font-family: Montserrat, system-ui, sans-serif;
font-size: clamp(3rem, 12vw, 8rem);
font-weight: 900;
line-height: 0.95;
transform: rotateX(30deg);
transform-style: preserve-3d;
}
.text > span {
position: relative;
z-index: 1;
display: block;
color: #050509;
text-shadow: 0 0 0.1em #003;
}
.layers,
.layer {
position: absolute;
inset: 0;
transform-style: preserve-3d;
}
.layer {
--n: calc(var(--i) / var(--layers-count));
color: hsl(200 30% calc(var(--n) * 100%));
transform: translateZ(calc(var(--i) * var(--layer-offset)));
}
@media (prefers-reduced-motion: reduce) {
.text { transform: none; }
}
@media (max-width: 38rem) {
.text { font-size: clamp(2.5rem, 15vw, 5rem); }
}
For a fixed static heading, you can omit the script and place the repeated elements directly in the HTML. For editable or user-provided text, generate the decorative copies from the same semantic source, escape content appropriately, and keep the real text outside aria-hidden.
Free tools Windows power users keep installed
One-click scans. No signup required.
Troubleshooting
It looks flat
Check that the parent has perspective, descendants retain preserve-3d, and the layers receive different --i values. Increase the offset slightly or use a stronger tonal gradient.
The copies look detached
The offset is probably too large for the type size. Reduce --layer-offset or increase the number of layers. More layers smooth the apparent depth but also add DOM nodes and rendering work.
The text is announced repeatedly
Confirm that the entire decorative group—not just individual copies—has aria-hidden="true". Keep one meaningful text instance outside it.
The component has no height or clips
Make sure the semantic text remains in normal flow. Avoid a fixed height unless you have tested responsive font sizes, line height, and user text scaling.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Best Value
- PLEASE NOTE: The XPPen Artist 15.6 Pro needs to connect with a computer to use. You need to use it with your Computer or Laptop. It is NOT a standalone drawing tablet
- Outstanding Visuals: The immersive 15.6 inch large screen with 1920x1080 p full HD resolution presents your creation in the depth of detail, provides you with clarity to see every detail of your work
- 8 customized express keys: The Artist 15.6 Pro monitor features 8 fully customizable shortcut keys and puts more customization options at your fingertips to suit you preferred work style, allowing you to capture and express your ideas easier and faster for optimized workflow
- Full-laminated Technology: XPPen Artist15.6 Pro art tablet is adopting full-laminated technology, seamlessly combines the glass and the screen, to create a distraction-free working environment that's also easy on the eyes
- Advanced Pen Performance: With up to 8192 levels of pressure sensitivity, the PA2 Battery-free Stylus provides you with increased accuracy and enhanced performance to create the finest sketches and lines
Long text wraps incorrectly
This effect is best for short headings. Repeated copies can wrap differently or become difficult to align as width changes. Use a short phrase, test narrow screens, and avoid using the effect for paragraphs or essential instructions.
The perspective is distorted
Increase the perspective value for a flatter appearance, or reduce it for stronger depth. Rotation also changes the perceived shape, so adjust rotateX() together with perspective.
When CSS is not the right tool
Use CSS and HTML when the title must be live, responsive, selectable, and part of an accessible webpage. Use SVG when you need precise vector artwork for a logo or display graphic. Use Canvas or WebGL for complex interactive scenes, accepting the additional accessibility work.
For print and raster compositions, Photoshop provides editable type layers, layer styles, strokes, shadows, and masks; see Adobe’s Photoshop layers guide. Illustrator is better suited to reusable vector artwork and can build effects through multiple fills, strokes, opacity settings, patterns, and Transform effects in the Appearance panel, as described in this Illustrator workflow. After Effects is the appropriate alternative for animated titles and motion graphics; its text-layer documentation covers editable vector text and 3D text-layer options.
These applications are alternatives, not prerequisites. A static layered heading can be built directly in the browser with the code above.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




