Animated 3D Text

Developer
Size
3,272 Kb
Views
34,408

How do I make an animated 3d text?

What is a animated 3d text? How do you make a animated 3d text? This script and codes were developed by Chad Scira on 27 August 2022, Saturday.

Animated 3D Text Previews

Animated 3D Text - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Animated 3D Text</title> <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! */ body { background: #1d1f20; margin: 0; padding: 0;
}
.container { transform-style: preserve-3d; transform: rotateX(10deg); margin-top: 25%;
}
.letter { color: #ff4742; text-shadow: 0px 0px 10px rgba(255,255,255,.2); position: absolute; width: 40px; height: 40px; margin-left: -20px; margin-top: -20px; text-align: center; line-height: 44px; backface-visibility: visible;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="container"></div> <script src="js/index.js"></script>
</body>
</html>

Animated 3D Text - Script Codes CSS Codes

body { background: #1d1f20; margin: 0; padding: 0;
}
.container { transform-style: preserve-3d; transform: rotateX(10deg); margin-top: 25%;
}
.letter { color: #ff4742; text-shadow: 0px 0px 10px rgba(255,255,255,.2); position: absolute; width: 40px; height: 40px; margin-left: -20px; margin-top: -20px; text-align: center; line-height: 44px; backface-visibility: visible;
}

Animated 3D Text - Script Codes JS Codes

function pointOnCircle(radius, angleInDegrees, origin) {	return {	x: (radius * Math.cos(angleInDegrees * Math.PI / 180)) + origin.x,	y: (radius * Math.sin(angleInDegrees * Math.PI / 180)) + origin.y	}
}
var elements = [];
var points = 30, radius = window.innerWidth/2;
for (var i = 0; i < points; i++) { var point = pointOnCircle(radius, i*(360/points), {x: radius, y: radius/2}); var element = document.createElement('div'); element.className = 'letter'; element.style.cssText = '-webkit-transform: translate3d(' + point.x + 'px, 0, ' + point.y + 'px) rotateY(' + (90- (i*(360/points))) + 'deg); opacity: ' + ((point.y + (radius/2))/(radius*2)) + '; font-size: ' + (radius/6) + 'px;'; document.querySelector('.container').appendChild(element); elements.push(element);
}
var text = 'Computer programming (often shortened to programming) is a process that leads from an original formulation of a computing problem to executable programs. It involves activities such as analysis, understanding, thinking, and generically solving such problems resulting in an algorithm, verification of requirements of the algorithm including its correctness and its resource consumption, implementation (commonly referred to as coding[1][2]) of the algorithm in a target programming language. Source code is written in one or more programming languages (such as C, C++, C#, Java, Python, Smalltalk, JavaScript, etc.). The purpose of programming is to find a sequence of instructions that will automate performing a specific task or solve a given problem.[citation needed] The process of programming thus often requires expertise in many different subjects, including knowledge of the application domain, specialized algorithms and formal logic. Related tasks include testing, debugging, and maintaining the source code, implementation of the build system, and management of derived artifacts such as machine code of computer programs. These might be considered part of the programming process, but often the term "software development" is used for this larger process with the term "programming", "implementation", or "coding" reserved for the actual writing of source code. Software engineering combines engineering techniques with software development practices.'.split('');
function update() { text.shift(); if (text.length < elements.length) return; //requestAnimationFrame(update); for (var i = 0; i < elements.length; i++) { elements[elements.length-i-1].innerHTML = text[i]; } setTimeout(update, 100);
}
update();
Animated 3D Text - Script Codes
Animated 3D Text - Script Codes
Home Page Home
Developer Chad Scira
Username icodeforlove
Uploaded August 27, 2022
Rating 3.5
Size 3,272 Kb
Views 34,408
Do you need developer help for Animated 3D Text?

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!

Chad Scira (icodeforlove) Script Codes
Create amazing SEO content 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!