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 |
Visualizer tests | 3,361 Kb |
HMD | 8,249 Kb |
Fibonacci color test | 2,310 Kb |
A Pen by Sladix | 3,349 Kb |
Responsive Stack slider | 3,527 Kb |
Agent Chaos | 4,709 Kb |
Text reveal test | 2,423 Kb |
Canvas snake animation random bezier curve looped | 2,882 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 |
SVG Text Masking | JMChristensen | 2,141 Kb |
Gradients | Karpovsystems | 2,394 Kb |
A Pen by Ash | Littleginger | 2,386 Kb |
CSS Heart Loaders | Nourabusoud | 2,161 Kb |
SCSS Simple Animated Drop-In | Danwarfel | 2,175 Kb |
Resume | Rottingroom | 5,483 Kb |
Obligatory CSS3 UI Nav | Romandiaz | 9,017 Kb |
APortfolio | Skybutterfly | 5,174 Kb |
Multicolumns 2 | Raphaelgoetter | 1,857 Kb |
STIKHOI | Denmch | 7,122 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!