CSS Letter animations

2,116 Kb

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 Previews

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">
<body> <div class="container"> <h3>Warning !!!</h3>
<p>Or type what you want want in the &lt;h3&gt;, I'm going to puke.</p> <script src="js/index.js"></script>

CSS Letter animations - Script Codes CSS Codes

{ text-align:center; background:#333; font-family:Calibri; color:#ddd;
{ 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); } }
CSS Letter animations - Script Codes
CSS Letter animations - Script Codes
Home Page Home
Developer Sladix
Username Sladix
Uploaded December 09, 2022
Rating 3
Size 2,116 Kb
Views 8,096
Do you need developer help for CSS Letter animations?

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!

Sladix (Sladix) 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!