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 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 HTML?

  HTML stands for HyperText Markup Language . It is used to design the front end portion of web pages using markup language. It acts as a skeleton for a website since it is used to make the structure of a website.

Amazed Animation Properties in CSS3

  Amazed Animation Properties in 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 > Animation box </ title >     < style >         .container {             width : 100% ;             height : auto ;                 }         .para {                         height : auto ;         }         body {             background : black ;             color : white ;         } ...