Hello all,
I'm building my first site and have run into a riddle I hope someone can help with. Basically I would like to create a site whose homepage has a background image like the wikipedia link (right here below) that resizes to every unique viewer's screen.
http://upload.wikimedia.org/wikipedi...rt_Project.jpg
I found the CSS3 coding for to resize a background image:
html {
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;
}
But the problem I'm running into is that I'd like to have the user (or the screen's viewfinder) venture out of the cave after they click on one of the Nav links. Would it be possible to divvy up the background into four foreground and background layers, and then "zoom" into the background to a larger view of outside the cave, revealing portions on the furthermost layer that are blocked by the foreground, and even have portions of the background that may bleed off the screen when each unique user hits the homepage? And if so, how?
Any help would be really appreciated. I think it'd be a neat trick for a whole bunch of possible scenarios.
Thanks!