Simple Fireworks effects, relatively simple, directly affixed to the code ...
<! DOCTYPE html>
<meta charset= "UTF-8" >
<TITLE>CSS3 for fireworks effects </title>
<style>
* {
margin:0;
padding:0;
}
html{
width:100%;
height:100%;
}
body{
width:100%;
height:100%;
}
#container {
width:100%;
height:100%;
Background-color:black;
position:relative;
}
#fireworks {
Position:absolute;
left:50%;
margin-left: -250px;
bottom:60%;
margin-bottom: -180px;
Transform:scale (0);
animation:fireworks 5s 3s;
}
@keyframes Fireworks {
0%{
Transform:scale (0);
}
80%{
Transform:scale (1);
}
100%{
opacity:0;
}
}
#firecracker {
Position:absolute;
left:50%;
bottom:0%;
margin-left: -4px;
animation:firecracker 3s forwards;
}
@keyframes Firecracker {
0%{
Transform:scale (1);
bottom:0%;
}
100%{
bottom:60%;
Transform:scale (0);
}
}
</style>
<body>
<div id= "container" >
<div id= "Fireworks" ></div>
<div id= "Firecracker" ></div>
</div>
</body>
Material: Demo.zip
CSS3--web front end for fireworks effects