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,096 |
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 |
Canvas snake animation random bezier curve looped | 2,882 Kb |
Responsive Stack slider | 3,527 Kb |
A Pen by Sladix | 3,349 Kb |
Fibonacci color test | 2,310 Kb |
Agent Chaos | 4,709 Kb |
HMD | 8,249 Kb |
Text reveal test | 2,423 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 |
Twitch API | Coderpilot | 3,412 Kb |
A Pen by Bryan Rojas | Bryanrojas | 1,873 Kb |
Firefox Breakout Guide | Quincysoeliman | 2,576 Kb |
Multicolumns 2 | Raphaelgoetter | 1,857 Kb |
Sticky menu on scroll | Senff | 2,869 Kb |
Ghost Buttons with CSS3 | Mithicher | 2,509 Kb |
RAQuote | Naderk007 | 4,412 Kb |
Cloud upload | Jaflo | 2,774 Kb |
Beautiful canvas stars | Matths | 2,399 Kb |
A Pen by Shidhin | Shidhincr | 5,015 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!