Let it Rain
How do I make an let it rain?
An interactive rain effect using CSS animation to make it rain and jQuery to have the mouse alter the angle of rain. What is a let it rain? How do you make a let it rain? This script and codes were developed by Matt Edwards on 12 August 2022, Friday.
Let it Rain - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Let it Rain</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="raining"> <div class="logo"></div> <div class="rain"></div> <div class="mask"></div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Let it Rain - Script Codes CSS Codes
body { background: #f1a213; padding-bottom: 900px;
}
@-webkit-keyframes makeItRain { from { background-position: 0px 0px; } to { background-position: 0px 1027px; }
}
.raining { position: relative; height: 365px; width: 960px; display: block; margin: 0 auto; overflow: hidden;
}
.logo { background: url(https://dl.dropboxusercontent.com/u/1488103/itsraining/header-bottom.png) no-repeat; position: absolute; bottom: 0px; top: 1px; right: 82px; left: 82px;
}
.rain { background: url(https://dl.dropboxusercontent.com/u/1488103/itsraining/rain.png); position: absolute; top: -100%; bottom: -100%; right: -40%; left: -40%; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); -webkit-transition: all 3s; transition: all 3s; -webkit-animation: makeItRain 3s linear infinite;
}
.mask { background: url(https://dl.dropboxusercontent.com/u/1488103/itsraining/header-top.png) no-repeat; background-size: cover; position: absolute; top: 0; bottom: 0; right: 0; left: 0;
}
Let it Rain - Script Codes JS Codes
$(document).ready(function(){ $('body').mousemove(function(e){ var width = $(document).width(); var relativeXPosition = (e.pageX); var position = ( ( ( ( ( relativeXPosition / width ) * 100 ) / 3 ) + 30 ) * -1 ); position = Math.round(position); position = position+'deg'; $('.rain').css('transform', 'rotate(' + position + ')'); });
});
Developer | Matt Edwards |
Username | mtedwards |
Uploaded | August 12, 2022 |
Rating | 4 |
Size | 2,746 Kb |
Views | 28,336 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
JQuery .show .hide menu | 2,356 Kb |
JQuery featured gallery | 7,630 Kb |
Basic jQuery Filter list | 2,464 Kb |
Basic jQuery Tabs | 2,555 Kb |
Responsive layout with Fixed width Sidebar | 2,249 Kb |
AussieTheatre Logo | 1,756 Kb |
Angular Instagram test | 2,396 Kb |
JQuery YouTube Playlist | 2,120 Kb |
Quiz | 2,814 Kb |
Css Skew background for triangular overlay | 2,636 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Bootstrap Responsive Menu Drawer | JesseGlacken | 3,777 Kb |
Slides-07-1 POSITION | Exhtml | 1,909 Kb |
A Pen by Moeid Saleem | Moeidsaleem | 1,862 Kb |
Content Changer | Cliffpyles | 4,538 Kb |
Simple search using AngularJS | Haykou | 1,802 Kb |
Display properties | Hamzaerbay | 1,886 Kb |
404 Error Page | WebSonick | 3,203 Kb |
Pure CSS Animated Photo Stack | Depthdev | 2,486 Kb |
Hovers with popups | Zacharyolson | 2,380 Kb |
Iron Man SVG Loading Animation | Andythayer | 3,069 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!