But the pain hundred days long
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
* {
padding: 0;
margin: 0;
}
body {
width: 100%;
height: 100%;
background-color: #000;
overflow: hidden;
}
</style>
</head>
<body>
<div id="flame"></div>
<script>
function Obj() {};
Obj.prototype.draw = function(o) {
var speed = 0;
var startPosLeft = Math.ceil(Math.random() * document.documentElement.clientWidth);
o.style.opacity = (Math.ceil(Math.random() * 3) + 7) / 10;
o.style.left = startPosLeft + 'px';
o.style.color = "#fff";
o.style.fontSize = 12 + Math.ceil(Math.random() * 14) + 'px';
setInterval(function() {
if (speed < document.documentElement.clientHeight) {
o.style.top = speed + 'px';
o.style.left = startPosLeft + Math.ceil(Math.random() * 8) + 'px';
speed += 10;
} else {
o.style.display = 'none';
}
}, 400);
}
var alame = document.getElementById('flame');
setInterval(function() {
var odiv = document.createElement('div');
odiv.innerHTML = '✽';
odiv.style.position = 'absolute';
flame.appendChild(odiv);
var obj = new Obj();
obj.draw(odiv);
}, 800);
</script>
</body>
</html>