I have a simple website with a fixed, full-sized background set using CSS. I am trying to incorporate rainyday.js to create a rain effect over the entire site, including the text.
Currently, I am only able to get rainyday.js to display rain over a small section by overlaying another background image. It seems to be creating a separate 'background' and using that instead.
I found a potential solution here, but I am confused about how to implement it.
If you are interested, you can find the rainy day code here.
Thank you!
HTML:
<!DOCTYPE html>
<html lang="en>
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<title>Safe House</title>
<link href="index.css" rel="stylesheet">
</head>
<body>
<div id="yes">
<div id="maindiv">
Safe House
</div>
<div id="secondarydiv">
<p>noun</p>
<p>1.</p>
<p>a dwelling or building whose conventional appearance makes it a
safe or</p>
<p>inconspicuous place for hiding, taking refuge, or carrying on
clandestine activities.</p>
</div>
</div>
</body>
</html>
CSS:
@import url(http://fonts.googleapis.com/css?family=Coming+Soon);
#maindiv {
text-align: center;
font-family: 'Coming Soon', sans-serif;
font-style: italic;
color: white;
text-transform: uppercase;
font-size: 10em;
font-weight: 700;
text-transform: uppercase;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}
#secondarydiv{
font-family: 'Coming Soon', sans-serif;
font-style: italic;
color: rgba(255, 255, 255, 0.7);
text-transform: uppercase;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
font-size: 1.5em;
font-weight: 700;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
margin-left: 300px;
}
#yes {
margin-top: 150px;
}
body {
background: url("images/bg.jpg") no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
p {
margin: 0;
}