logo DevAnswer - Developers Answer

Pure CSS Raining Background

20th October

Preview


Source Code
                            <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from www.devanswer.com -->


<style>
*{
   margin: 0px;
   padding: 0px;
   box-sizing: border-box;
}
section{
   position: relative;
   height: 100vh;
   width: 100%;
   background-image: url('http://www.devanswer.com/img/road-dark.jpg');
   background-repeat: no-repeat;
   background-size: cover;
   background-position: center;
}
section::before{
   content: '';
   position: absolute;
   top: 0%;
   left: 0%;
   width: 100%;
   height: 100%;
   background-image: url('http://www.devanswer.com/img/rain_png.png');
   animation: rain 0.19s ease-in infinite;
}
@keyframes rain{
   0%{
      background-position: 10 0;
   }
   100%{
      background-position: 20% 80%;
   }
}
</style>

</head>
<body>
<section>
</section><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Developers Answer</a></div>

</body>
</html>                        



Other Codes