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

Use of Switch Case in JAVASCRIPT:

 How to check week day from  week number  ? <! 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 > Check week day </ title > </ head > < body >     < script >     var a = prompt ( "enter Week Number" );   switch ( a ){     case '1' :         document . write ( "Monday" );         break ;           case '2' :         document . write ( "Tuesday" );         break ;         case '3' :         document . write ( "Wednesday" );         break ;         case '4' : ...

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.

Check Greater Number with Javascript

  Check  Greater Number  with 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 > Check Maximum Number </ title >     < style >         body {             display : flex ;             justify-content : center ;             align-items : center ;             /* border: 1px solid green; */         }         .container {             display : block ;             height : 45vh ;             margin-top : 100...