3D CSS Text with Perspective
How do I make an 3d css text with perspective?
A method for creating more realistic looking 3D text using 3D CSS. . What is a 3d css text with perspective? How do you make a 3d css text with perspective? This script and codes were developed by Noah Blon on 24 June 2022, Friday.
3D CSS Text with Perspective - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>3D CSS Text with Perspective </title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @import url(//fonts.googleapis.com/css?family=Yesteryear);
html, body { width: 100%; height: 100%;
}
html { background: #222;
}
body { background: ""; font: 300px/1 Yesteryear, Futura, Helvetica, sans-serif; -webkit-font-smoothing: antialiased;
}
.scene { height: 100%; perspective: 800px; perspective-origin: 50% 50%; transform-style: preserve-3d;
}
.layer { width: 100%; height: 100%; position: absolute;
}
.layer::after { content: "Perspective"; white-space: pre; text-align: center; height: 100%; display: flex; align-items: center; justify-content: center; color: #dddddd; text-shadow: -1px -1px 1px white, 1px 1px 3px rgba(0, 0, 0, 0.2), 1px 2px 3px rgba(0, 0, 0, 0.1); letter-spacing: -1px;
}
.layer:nth-child(1):after { transform: translateZ(0px);
}
.layer:nth-child(2):after { transform: translateZ(-3px);
}
.layer:nth-child(3):after { transform: translateZ(-6px);
}
.layer:nth-child(4):after { transform: translateZ(-9px);
}
.layer:nth-child(5):after { transform: translateZ(-12px);
}
.layer:nth-child(6):after { transform: translateZ(-15px);
}
.layer:nth-child(7):after { transform: translateZ(-18px);
}
.layer:nth-child(8):after { transform: translateZ(-21px);
}
.layer:nth-child(9):after { transform: translateZ(-24px);
}
.layer:first-child::after { color: #eeeeee; text-shadow: -1px -1px 1px white, 8px 8px 5px rgba(0, 0, 0, 0.03), 9px 9px 5px rgba(0, 0, 0, 0.03), 10px 10px 5px rgba(0, 0, 0, 0.03), 11px 11px 5px rgba(0, 0, 0, 0.03), 12px 12px 5px rgba(0, 0, 0, 0.03), 13px 13px 5px rgba(0, 0, 0, 0.03), 14px 14px 5px rgba(0, 0, 0, 0.03), 15px 15px 5px rgba(0, 0, 0, 0.03), 16px 16px 10px rgba(0, 0, 0, 0.03);
}
.layer:last-child::after { text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3), 1px 2px 1px rgba(0, 0, 0, 0.3), 2px 4px 1px rgba(0, 0, 0, 0.3), 3px 6px 1px rgba(0, 0, 0, 0.2), 4px 8px 1px rgba(0, 0, 0, 0.2), 5px 10px 1px rgba(0, 0, 0, 0.2), 6px 12px 1px rgba(0, 0, 0, 0.2), 7px 14px 5px rgba(0, 0, 0, 0.2), 8px 16px 5px rgba(0, 0, 0, 0.1), 9px 18px 10px rgba(0, 0, 0, 0.1), 9px 18px 20px rgba(0, 0, 0, 0.5);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="scene"> <div class="layer"></div> <div class="layer"></div> <div class="layer"></div> <div class="layer"></div> <div class="layer"></div> <div class="layer"></div> <div class="layer"></div> <div class="layer"></div> <div class="layer"></div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
3D CSS Text with Perspective - Script Codes CSS Codes
@import url(//fonts.googleapis.com/css?family=Yesteryear);
html, body { width: 100%; height: 100%;
}
html { background: #222;
}
body { background: ""; font: 300px/1 Yesteryear, Futura, Helvetica, sans-serif; -webkit-font-smoothing: antialiased;
}
.scene { height: 100%; perspective: 800px; perspective-origin: 50% 50%; transform-style: preserve-3d;
}
.layer { width: 100%; height: 100%; position: absolute;
}
.layer::after { content: "Perspective"; white-space: pre; text-align: center; height: 100%; display: flex; align-items: center; justify-content: center; color: #dddddd; text-shadow: -1px -1px 1px white, 1px 1px 3px rgba(0, 0, 0, 0.2), 1px 2px 3px rgba(0, 0, 0, 0.1); letter-spacing: -1px;
}
.layer:nth-child(1):after { transform: translateZ(0px);
}
.layer:nth-child(2):after { transform: translateZ(-3px);
}
.layer:nth-child(3):after { transform: translateZ(-6px);
}
.layer:nth-child(4):after { transform: translateZ(-9px);
}
.layer:nth-child(5):after { transform: translateZ(-12px);
}
.layer:nth-child(6):after { transform: translateZ(-15px);
}
.layer:nth-child(7):after { transform: translateZ(-18px);
}
.layer:nth-child(8):after { transform: translateZ(-21px);
}
.layer:nth-child(9):after { transform: translateZ(-24px);
}
.layer:first-child::after { color: #eeeeee; text-shadow: -1px -1px 1px white, 8px 8px 5px rgba(0, 0, 0, 0.03), 9px 9px 5px rgba(0, 0, 0, 0.03), 10px 10px 5px rgba(0, 0, 0, 0.03), 11px 11px 5px rgba(0, 0, 0, 0.03), 12px 12px 5px rgba(0, 0, 0, 0.03), 13px 13px 5px rgba(0, 0, 0, 0.03), 14px 14px 5px rgba(0, 0, 0, 0.03), 15px 15px 5px rgba(0, 0, 0, 0.03), 16px 16px 10px rgba(0, 0, 0, 0.03);
}
.layer:last-child::after { text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3), 1px 2px 1px rgba(0, 0, 0, 0.3), 2px 4px 1px rgba(0, 0, 0, 0.3), 3px 6px 1px rgba(0, 0, 0, 0.2), 4px 8px 1px rgba(0, 0, 0, 0.2), 5px 10px 1px rgba(0, 0, 0, 0.2), 6px 12px 1px rgba(0, 0, 0, 0.2), 7px 14px 5px rgba(0, 0, 0, 0.2), 8px 16px 5px rgba(0, 0, 0, 0.1), 9px 18px 10px rgba(0, 0, 0, 0.1), 9px 18px 20px rgba(0, 0, 0, 0.5);
}
Developer | Noah Blon |
Username | noahblon |
Uploaded | June 24, 2022 |
Rating | 4.5 |
Size | 4,044 Kb |
Views | 74,888 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Sass-managed SVG Background-Image icons | 3,926 Kb |
Planet | 3,572 Kb |
Juggle | 3,302 Kb |
Colored SVG background-image - Filter Method | 2,392 Kb |
SVG Christmas Light Icon Animated with CSS | 2,224 Kb |
An Intro to SVG Animation with SMIL - Example 1 | 1,987 Kb |
Carousel | 3,349 Kb |
Responsive Image Grid using SVG wrappers | 3,859 Kb |
Free Radicals | 33,329 Kb |
Cross-Browser Range Input With Solid Lower Fill | 1,912 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Css3 loader | Clknap | 2,391 Kb |
Slick Slider | Wearebold | 5,913 Kb |
Monochrome Form | AlienPiglet | 3,096 Kb |
Button fills | Zubfatal | 5,205 Kb |
Simple Login Form Template | Banunn | 3,571 Kb |
React Template | Isac | 1,241 Kb |
A Pen by Patrick Cox | Pcridesagain | 2,899 Kb |
Bootstrap 4 Gridsystem Demo | Rivella50 | 1,535 Kb |
React Vote Component | Souporserious | 5,465 Kb |
Simple Buttons | Haydenmills | 1,750 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!