I have two div with a height of 100%. And when you scroll, I want that the second div over the other scrolls, without scrolling the first up.
Like on this site: http://www.endzeit-ausstellung.de/
I looked in Firebug, but I can't find the solution there, can anybody help me?
Much thanks in advance!
you dont need jquery plugins to do this „scrolling-effect“. you just need some css ;)
quick and dirty example here:
HTML
CSS
demo here:
jsfiddle Example
btw: i've made the endzeit-ausstellung.de site.
This is parallax scrolling, and there a lot of good libraries to help you out. I've used these before and they work well:
Skrollr - https://github.com/Prinzhorn/skrollr
Parallax.js - http://stolksdorf.github.io/Parallaxjs/
This is called
Parallax
effect scrolling. This involves a lot of things to make it work. check out the resources for the same. The best one I found which is much similar to the website reference that you have provided.Hope this helps.
Check jParallax with jQuery : http://stephband.info/jparallax/
There is a much simpler way. I found it on W3Schools. The important part is to add
background-attachment: fixed
. The full CSS looks like this: