Html code to draw a Moving star

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        @keyframes moveStar {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(100vw);
            }
        }

        .star {
            width: 50px;
            height: 50px;
            background-color: red;
            clip-path: polygon(50% 0%, 61.8% 38.2%, 100% 50%, 61.8% 61.8%, 50% 100%, 38.2% 61.8%, 0% 50%, 38.2% 38.2%);
            position: absolute;
            animation: moveStar 4s linear infinite;
        }

        body {
            margin: 0;
            overflow: hidden;
        }
    </style>
</head>
<body>
    <div class="star"></div>
</body>
</html>

Comments

Popular posts from this blog

Kinematics Important Questions Of Physics

Changing Trends And Career in Physical Education Solutions || Objective Type Questions || Objective Answers Chapter 1 Class 11 Solution || Physical Education ||

Data Mining || Supervised vs. Unsupervised Techniques || Dimensionality Reduction || Partitioning Methods

2.0 gram of a metal burst in oxygen give 3.2 gram of its oxide. 1.42 gram of the same metal heat in steam give 2.27 gram of its oxide which toys shown by this data?

Vectors important questions of physics || Important question of PHYSICS || Important question of Basic Mathematics || MOTION IN A PLANE || Physics||