Raining animation With Codding
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 0;
padding: 0;
}
section {
position: relative;
width: 100%;
height: 100vh;
background-image: url(https://images.unsplash.com/photo-1528181304800-259b08848526?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80);
background-size: cover;
background-position: center;
animation: color-change 5s linear infinite;
animation-delay: 1s;
}
section:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url(rain.png);
animation: rain 0.4s linear infinite;
opacity: 0;
}
@keyframes rain {
0% {
background-position: 0 0;
opacity: 1;
}
100% {
background-position: 8% 80%;
opacity: 1;
}
}
@keyframes color-change {
0% {
filter: hue-rotate(0deg);
}
50% {
filter: hue-rotate(0deg);
}
100% {
filter: hue-rotate(360deg);
}
}
</style>
</head>
<body>
<section></section>
</body>
</html>
<html>
<head>
<style>
body {
margin: 0;
padding: 0;
}
section {
position: relative;
width: 100%;
height: 100vh;
background-image: url(https://images.unsplash.com/photo-1528181304800-259b08848526?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80);
background-size: cover;
background-position: center;
animation: color-change 5s linear infinite;
animation-delay: 1s;
}
section:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url(rain.png);
animation: rain 0.4s linear infinite;
opacity: 0;
}
@keyframes rain {
0% {
background-position: 0 0;
opacity: 1;
}
100% {
background-position: 8% 80%;
opacity: 1;
}
}
@keyframes color-change {
0% {
filter: hue-rotate(0deg);
}
50% {
filter: hue-rotate(0deg);
}
100% {
filter: hue-rotate(360deg);
}
}
</style>
</head>
<body>
<section></section>
</body>
</html>
OUTPUT

50 Comments
Interesting rain
ReplyDeleteAwesome
ReplyDeleteAmazing
ReplyDeleteWow Guys
ReplyDeleteAmazing Raining
ReplyDeleteSuperb
ReplyDeleteGreat
ReplyDeleteExcellent
ReplyDeleteMind Blowing
ReplyDeleteWow amazing rain fall 😊😊😊😊
ReplyDeleteBeautiful 😊😊😊😊😊
ReplyDeleteVery Nice
ReplyDeleteBest
ReplyDeleteAwesome
ReplyDeleteexcellent job
ReplyDeleteWow 😊😊😊😊
ReplyDeleteWonderful
ReplyDeleteVery good 😊😊😊😊
ReplyDeleteWonderful
ReplyDeletePerfect
ReplyDeleteWonderful
ReplyDeleteMind Blowing
ReplyDeleteGood Work
ReplyDeleteWonderful
ReplyDeleteWonderful
ReplyDeleteRain
Nice
ReplyDeleteWonderful
ReplyDeletesuper
Perfect
ReplyDelete100%
Awesomely
ReplyDeleteGazab
ReplyDeleteMast
ReplyDeleteMaster class
ReplyDeleteKallu
ReplyDeleteNice very good
Interesting
ReplyDeleteKallu
ReplyDeleteVery nice
Very Very nice
ReplyDeleteSuperb quality
ReplyDeleteAwesome
ReplyDeleteMind Blowing
ReplyDeleteGreat
ReplyDeleteSuperb work
ReplyDeleteWonderful
ReplyDeleteAttractive
ReplyDeleteSuperb and great job
ReplyDeleteInteresting
ReplyDeleteExcellent job
ReplyDeleteGood Work
ReplyDeleteWonderful
ReplyDeleteGood job
ReplyDeleteNice raining in winter ❄️❄️❄️❄️❄️
ReplyDelete