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 |
Colored SVG background-image - Filter Method | 2,392 Kb |
Burton Ball | 4,499 Kb |
Glitch Pop | 4,644 Kb |
SVG Christmas Light Icon Animated with CSS | 2,224 Kb |
An Intro to SVG Animation with SMIL - Example 1 | 1,987 Kb |
Sass-managed SVG Background-Image icons | 3,926 Kb |
CSS Jellyfish | 5,609 Kb |
Planet | 3,572 Kb |
Responsive Image Grid using SVG wrappers | 3,859 Kb |
9 Pens | 3,350 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 |
Border-radius animation | Yukulele | 2,480 Kb |
Modal Dialog | Gigaleet | 2,251 Kb |
React Recipe Box | Krokodill | 5,347 Kb |
Replace url via jquery | Serluk | 1,429 Kb |
Simple personal profile | Miroot | 2,856 Kb |
Animated bar chart | CreativePunch | 3,124 Kb |
Heartbeat | Apetrov | 2,079 Kb |
Simple Flat Menu | Jeplaa | 2,467 Kb |
CSS Variables | Jdsteinbach | 4,759 Kb |
DFF Website | Hawcubite | 10,123 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!