<!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">
<meta http-equiv="refresh" content="10">
<title>Campo elemento</title>
<link rel="stylesheet" href="estilo.css">
<style>
body{
margin: 0;
padding: 0;
box-sizing: border-box;
background-color: #000;
background-color: hidden;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
h1{
position: relative;
color: #e77811;
font-size: 4em;
letter-spacing: 5px;
border-bottom: 18px solid #333;
line-height: 1.4;
font-family: consolas;
text-transform: uppercase;
}
h1::before{
content: attr(data-text);
position: absolute;
top: 0;
left: 0;
width: 100%;
color: dodgerblue;
border-bottom: 16px solid dodgerblue;
animation: lod 4s linear infinite;
overflow: hidden;
}
@keyframes lod{
0% {
width: 0;
}
100% {
width: 100%;
}
}
</style>
</head>
<body>
<h1 data-text="Loading...">Loading...</h1>
</body>
</html>
Nenhum comentário:
Postar um comentário