Rocket Launching HTML+CSS Design

 Rocket Launching Design:-

CODE:-

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .{
            margin0%;
            padding0%;
            box-sizingborder-box;
        }
        body{
            displayflex;
            justify-contentcenter;
            align-itemscenter;
            min-height100vh;
            background#ffeb3b;
            overflowhidden;
        }
        .pulse{
            positionrelative;
            width200px;
            height200px;
            background#ff5722;
            border-radius50%;
        }
        .pulse span{
            positionabsolute;
            top0;
            left0;
            background#ff5722;
            border-radius50%;
            displayinline-block;
            width100%;
            height100%;
            animation: animate 2.5s linear infinite;
            animation-delay:calc(-0.5s * var(--i)) ;
        }
        @keyframes animate {
            0%{
                transformscale(1);
                opacity0.5;
            }
            90%{
                transformscale(3);
            }
            100%{
                transformscale(4);
                opacity0;
            }
        }

        .rocket{
            positionrelative;
            top50px;
            text-aligncenter;
            animation: rocket 0.1s ease infinite;
        }
        @keyframes rocket{
            0%,100%{
                transformtranslateY(-1px);
            }
            50%{
                transformtranslateY(1px);
            }
        }
        .rocket::before{
            content'';
            positionabsolute;
            bottom-250%;
            left50%;
            transformtranslateX(-50%);
            width20px;
            height250px;
            backgroundlinear-gradient(#ffc107,transparent);
        }
        .rocket::after{
            content'';
            positionabsolute;
            bottom-250%;
            left50%;
            transformtranslateX(-50%);
            width20px;
            height250px;
            backgroundlinear-gradient(#ce7706,transparent);
            filterblur(20px);
        }
    </style>
</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>
        
        <div class="rocket">
            <img src="resources/rocket1.png" width="50%" height="50%">
        </div>
    </div>
</body>
</html>


OUTPUT:-


Comments

Popular Posts