CSS Pulse Animation Effects

CSS Pulse Animation Effects



All Source Code : https://www.patreon.com/onlinetutorials Get now more than 1000+ source code just by clicking on this link …

source

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS Pulsing Animation</title>
    <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
    <div class="pulse">
        <span style="--i:1;"></span>
        <span style="--i:2;"></span>
        <span style="--i:3;"></span>
        <span style="--i:4;"></span>
        <span style="--i:5;"></span>
        <span style="--i:6;"></span>
    </div>
</body>
</html>
*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body 
{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #0a3643;
}
.pulse 
{
    position: relative;
    width: 200px;
    height: 200px;
    box-shadow: inset 0 0 40px #12b9ff,
    0 0 50px #12b9ff;
    border-radius: 50%;
    border: 1px solid #12b9ff;
    background: url(earth.png);
    background-size: cover;
    animation: animateEarth 10s linear infinite;
}
.pulse span 
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: transparent;
    border: 1px solid #12b9ff;
    animation: animate 6s linear infinite;
    animation-delay: calc(var(--i) * -1s);
    border-radius: 50%;
}
@keyframes animate 
{
    0% 
    {
        width: 200px;
        height: 200px;
        opacity: 1;
    }
    50% 
    {
        opacity: 1;
    }
    100% 
    {
        width: 600px;
        height: 600px;
        opacity: 0;
    }
}
@keyframes animateEarth 
{
    0% 
    {
        background-position-x: 0px;
    }
    100% 
    {
        background-position-x: 360px;
    }
}

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *