<! DOCTYPE html>
<meta charset= "UTF-8" >
<title></title>
<style type= "Text/css" >
body{
Background-color:black;
}
. pao{
Position:absolute;
left:50%;
height:150px;
bottom:0px;
Animation:pao 2s ease forwards;
}
. hua1{
Position:absolute;
left:35%;
top:20px;
Transform:scale (0);
Opacity:1;
Animation:hua 2s ease 1s infinite forwards;
}
. hua2{
Position:absolute;
left:15%;
top:40px;
Transform:scale (0);
Opacity:1;
Animation:hua 2s ease 2s infinite forwards;
}
. hua3{
Position:absolute;
left:5%;
top:30px;
Transform:scale (0);
Opacity:1;
Animation:hua 2s ease 3s infinite forwards;
}
. hua4{
Position:absolute;
left:60%;
top:30px;
Transform:scale (0);
Opacity:1;
Animation:hua 2s ease 4s infinite forwards;
}
. hua5{
Position:absolute;
left:45%;
top:20px;
Transform:scale (0);
Opacity:1;
Animation:hua 2s ease 5s infinite forwards;
}
@keyframes pao{
from{
bottom:0px;
}
to{
bottom:400px;
Transform:scale (0);
}
}
@keyframes hua{
from{
Transform:scale (0);
Opacity:1;
}
to{
Transform:scale (1);
opacity:0;
}
}
</style>
<body>
</body>
Make a beautiful fireworks animation with HTML+CSS