3D CSS Text with Perspective

Developer
Size
4,044 Kb
Views
74,888

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 Previews

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);
}
3D CSS Text with Perspective - Script Codes
3D CSS Text with Perspective - Script Codes
Home Page Home
Developer Noah Blon
Username noahblon
Uploaded June 24, 2022
Rating 4.5
Size 4,044 Kb
Views 74,888
Do you need developer help for 3D CSS Text with Perspective?

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!

Noah Blon (noahblon) Script Codes
Create amazing love letters with AI!

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!