I am using the JQuery Starfield plugin that creates a starfield background. http://rocketwagon.github.io/jquery-starfield/
I love how this plugin works, but if the page content makes the page scrollable, the background does not scoll. The starfield will remain in place and then the regular background shows.
Does anyone know how to solve this?
I'm hoping someone else has used this plugin.
The way that this plugin works is you create a container for your content.
The container properties are as follows:
#container {
width: 100%;
height: 100%;
position: relative;
z-index: 1;
}
You have to use position: relative;
and z-index: 1;
because the starfield covers your content if you do not give your content a z-index
above 1
.
I created this jsfiddle as an example but I cannot seem to load jquery in it. It has my full code though.