CSS Letter animations
How do I make an css letter animations?
Just a little WIP script to animate each letter of a sentence. What is a css letter animations? How do you make a css letter animations? This script and codes were developed by Sladix on 09 December 2022, Friday.
CSS Letter animations - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Letter animations</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <h3>Warning !!!</h3>
</div>
<p>Or type what you want want in the <h3>, I'm going to puke.</p> <script src="js/index.js"></script>
</body>
</html>
CSS Letter animations - Script Codes CSS Codes
body
{ text-align:center; background:#333; font-family:Calibri; color:#ddd;
}
.container
{ display: inline-block; background:#222; padding:20px; border-radius:3px;
}
.container h3
{ margin:0; text-shadow:0px 1px 0px black; font-weight:bold; font-style:italic; line-height:100%; font-size:60px;
}
h3 span
{ -webkit-animation: woop 2s linear infinite; -webkit-animation-fill-mode:both;
}
@-webkit-keyframes woop { 0% { font-size:100%;} 5% {font-size:250%; color:#aa0000;} 10% {font-size:100%;} 80%{color:white;} 100% {font-size:100%; }
}
CSS Letter animations - Script Codes JS Codes
var t = document.getElementsByTagName("h3")[0];
function letterThat(what)
{ var texte = what.innerHTML; what.innerHTML = ""; var spaces = 0; for (var i = 0; i < texte.length; i++) { if(texte[i] != " ") { var s = document.createElement("span"); s.innerHTML = texte[i]; s.style.webkitAnimationDelay = ((i-spaces)*0.2)+"s"; what.appendChild(s); }else { spaces++; var s = document.createElement("span"); s.innerHTML = " "; what.appendChild(s); } }
}
letterThat(t);

Developer | Sladix |
Username | Sladix |
Uploaded | December 09, 2022 |
Rating | 3 |
Size | 2,116 Kb |
Views | 8,092 |
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 |
Responsive Stack slider | 3,527 Kb |
Text reveal test | 2,423 Kb |
Canvas snake animation random bezier curve looped | 2,882 Kb |
Visualizer tests | 3,361 Kb |
Fibonacci color test | 2,310 Kb |
Agent Chaos | 4,709 Kb |
A Pen by Sladix | 3,349 Kb |
HMD | 8,249 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 |
Coburg Banks SVG Logo | Mjtweaver | 3,875 Kb |
Print element on a page | Mrs_snow | 2,081 Kb |
Zeichensatz | Moklick | 2,058 Kb |
React Recipe Box | Krokodill | 5,347 Kb |
Responsive Section hover effect to show content | Berdejitendra | 2,540 Kb |
Video mute | Leon9208 | 2,131 Kb |
Front in Aracaju Logo Pure CSS | Shankarcabus | 2,581 Kb |
Planet Awesome | Bartuc | 3,554 Kb |
P1 | Vivi_Lai | 1,533 Kb |
A Pen by tugce | Ecgutcnkr | 4,197 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!