Animated Loading Text Effect Using HTML And CSS
Source Code For Loading :
HTML CSS CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Loading...</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap" rel="stylesheet">
<style>
body{
margin: 0;
padding: 0;
font-family: 'Poppins',sans-serif;
background-color: black;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
font-size: 4em;
}
h1{
position: relative;
color: rgb(73, 72, 72);
/* -webkit-text-stroke: 3px #3e3e3e; */
}
h1::before{
content: attr(data-text);
position: absolute;
left: 0;
top: 0;
width: 0;
height: 100%;
border-radius: 8px 8px ;
border-right:0px solid black ;
animation: animate 3s linear infinite ;
-webkit-text-stroke: 0px #3e3e3e;
overflow: hidden;
border-bottom: 10px solid rgb(73, 72, 72) ;
}
@keyframes animate{
0%{
width: 0;
color: rgb(0, 110, 255);
border-bottom: 10px solid rgb(0, 110, 255);
}
100%{
width: 100%;
color: rgb(0, 110, 255);
border-bottom: 10px solid rgb(0, 110, 255);
}
}
</style>
</head>
<body>
<h1 data-text="LOADING...">LOADING...</h1>
</body>
</html>
This Code Animate Like this and You Can also Customize According To You :
Subscribe Us On YouTube
My YouTube Channel Link : Coding With Roannie
Thanks For Visiting