Pesquisar neste blog

30/03/2023

Texto Glowing em CCS

Saída gerada


<!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="5">
    <title>Text Animation</title>
</head>
<style>
    body{
        background-color: black;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: sans-serif;
        font-size: 4rem;
        height: 100vh;
    }
    .container > span{
        text-transform: uppercase;
        animation: glow 2.5s ease-in-out infinite;
    }
    @keyframes glow {
        0%, 100%{
            color: white;
            text-shadow: 0 0 50px #FC00FF, 0 0 50px
            #FC00FF, 0 0 100px #FC00FF;
        }
        10%, 90%{
            color: #24e013;
            text-shadow: none;
        }
    }
    .container > span:nth-child(2){
        animation-delay: 0.25s;
    }
    .container > span:nth-child(3){
        animation-delay: 0.5s;
    }
    .container > span:nth-child(4){
        animation-delay: 0.75s;
    }
    .container > span:nth-child(5){
        animation-delay: 1s;
    }
    .container > span:nth-child(6){
        animation-delay: 1.25s
    }
    .container > span:nth-child(7){
        animation-delay: 1.5s;
    }
    .container > span:nth-child(8){
        animation-delay: 1.75s;
    }
   
</style>
<body>
    <div class="container">
        <span>C</span>
        <span>R</span>
        <span>E</span>
        <span>A</span>
        <span>T</span>
        <span>I</span>
        <span>V</span>
        <span>E</span>
    </div>
</body>
</html>

Nenhum comentário: