Pesquisar neste blog

18/03/2023

Load com CSS

<!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>Load</title>

<style>
    body{
        display: flex;
        justify-content: center;
        align-items: center;        
    }
    .load_1{
        margin-top: 10px;
        width: 100px;
        height: 100px;
        border-top: 10px solid red;
        border-left: 10px solid blue;
        border-right: 10px solid green;
        border-bottom: 10px solid yellow;
        border-radius: 50%;
        /*animation: load 1s ease infinite;*/
        animation: load 1s linear infinite;
    }
    h2{
        margin: -88px;
    }
    @keyframes load {
        to{
            transform: rotate(1turn);
        }
    }
</style>
</head>
<body>
    <h2>Load</h2>
    <div class="load_1">
    </div>
</body>
</html>

Saída gerada





Nenhum comentário: