Skip to main content

Bouncy Ball by css3

 Bouncy Ball by css3


<!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">
    <title>Bouncy balls</title>
    <style>
        *{
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }
        body{
            background-color: black;
        }
       .container{
            height: 100vh;
            display: flex;
            justify-content:center ;
            align-items: center;
            margin-top: 40px;
        }
       
       
      .container ul {
           display: flex;
           border-bottom: 10px solid #ffd32a;
           border-radius: 10px;
           

           
               
        }
         .container ul li{
            width: 50px;
            height: 50px;
            margin: 0px 10px;
            background:black;
            list-style: none;
            border-radius: 50%;
            animation: bouncy 1s infinite linear;
         }
         @keyframes bouncy {
            0%{
                transform: translateY(0);
            }
            50%{
                transform: translateY(-148px);
            }
            100%{
                transform: translateY(0);
            }
         }
         ul li:nth-child(1){
            animation-delay: 0.2s;
            background-color: #fd79a8;
         }
         ul li:nth-child(2){
            animation-delay: 0.5s;
            background-color: #00cec9;
         }
         ul li:nth-child(3){
            animation-delay: 0.3s;
            background-color: #6c5ce7;
         }
         ul li:nth-child(4){
            animation-delay: 1s;
            background-color: #ffeaa7;
         }
         ul li:nth-child(5){
            animation-delay: 0.7s;
            background-color: #0984e3;
         }


    </style>
</head>
<body>
    <div class="container">
        <ul>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </div>
</body>
</html>

=============outpu

t-===========


Comments

Popular posts from this blog

How to make Calculator with easy coding

  <! 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" >     < title > New Calculator </ title >     < link rel = "stylesheet" href = "https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.4/font/bootstrap-icons.css" >     < link rel = "stylesheet" href = "style.css" >     < script src = "https://kit.fontawesome.com/a02bd9801f.js" crossorigin = "anonymous" ></ script > </ head > < body >     < div class = "container" >         < div class = "screen" >             < textarea name = "text" id = "text" cols = "30" rows = "7" readonly...

How To Make Clone NETFLIX Webpage

 How To Make Clone NETFLIX Webpage...... With the Help of HTML CSS and JAVASCRIPT... <! 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" >     < title > Netflix Clone </ title >     < script src = "https://kit.fontawesome.com/a02bd9801f.js" crossorigin = "anonymous" ></ script > < link rel = "stylesheet" href = "https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css" >         < style >         body {             display : flex ;             justify-content : center ;             align-items : center ;         ...

What is Web-Development ?

i) Web development refers to the creating, building, and maintaining of websites.  ii) It includes aspects such as web design, web publishing, web programming, and database management. iii)  It is the creation of an application that works over the internet for e.g websites. The word Web Development is made up of two words, that is: Web:  It refers to websites, web pages or anything that works over the internet. Development:  It refers to building the application from scratch.