如何做视差效果类似tokiolab.it? [英] How to do the parallax effect similar to tokiolab.it?
问题描述
我一直在阅读很多关于jQuery视差,我只是不能得到它。我想要像这个网站一样:
I have been reading a lot about jQuery parallax and I just don't get it at all. I want to do the same as this site:
正如你可以看到的第一页是一个动画真的很容易,但当你滚动下一页开始覆盖部分第一个。有人可以帮助我一点,我知道你需要使用Z-index,但你怎么实现这种效果 - 似乎不是那么困难,可能是固定的背景或固定的div,任何想法?
As you can see the first page is an animation which is really easy but when you scroll the next page starts covering part of the first one. Can someone help me a bit, I know you need to use z-index but how do you achieve that effect - it seems to not be that difficult, maybe a fixed background or a fixed div, any ideas?
非常感谢!提前感谢!
推荐答案
一些视差教程:
- http://www.ianlunn.co.uk/ blog / code-tutorials / jquery-vertical-parallax-background /
- http://www.richardshepherd.com/smashing/parallax/background.html
- http://coding.smashingmagazine.com/2011/07/12/behind-the-scenes-of-nike-better-世界/
- http:// www .netmagazine.com / tutorials / building-parallax-scrolling-storytelling-framework
- http://www.webdesignshock.com/one-page-website/
- http://www.ianlunn.co.uk/demos/recreate-nikebetterworld-parallax/
- http://www.franckmaurin.com/the-parallax-effects-with-jquery/ li>
- http://www.ianlunn.co.uk/blog/code-tutorials/jquery-vertical-parallax-background/
- http://www.richardshepherd.com/smashing/parallax/background.html
- http://coding.smashingmagazine.com/2011/07/12/behind-the-scenes-of-nike-better-world/
- http://www.netmagazine.com/tutorials/building-parallax-scrolling-storytelling-framework
- http://www.webdesignshock.com/one-page-website/
- http://www.ianlunn.co.uk/demos/recreate-nikebetterworld-parallax/
- http://www.franckmaurin.com/the-parallax-effects-with-jquery/
jQuery视差插件:
jQuery parallax plugins:
- http://stephband.info/jparallax/
- http://jonraasch.com/blog/scrolling-parallax-jquery-plugin
- https://github.com/davecranwell/jQuery-scroll-parallax
- http://www.davecranwell.com/content/jquery-scroll-parallax-plugin
- http://stephband.info/jparallax/
- http://jonraasch.com/blog/scrolling-parallax-jquery-plugin
- https://github.com/davecranwell/jQuery-scroll-parallax
- http://www.davecranwell.com/content/jquery-scroll-parallax-plugin
更多视差网站的例子,查看源代码并查看他们使用的方法:
Some more examples of really nice parallax sites, view source and see what they used:
- http://www.ok-studios.de/home/
- http://www.nikebetterworld.com/about
- http://www.laurentiuswonen.com/jaarverslag2010/
- http://www.nintendo.com.au/gamesites/mariokartwii/
- http://2011.beercamp.com/
- http://www.beetle.com/
- http://activatedrinks.com/
- http://www.culturalsolutions .co.uk /
- http://kalendiar.lenm.cz/
- http://www.davegamache.com/sandbox/best -of-2010 /
- https://victoriabeckham.landrover.com/INT
- http://www.ok-studios.de/home/
- http://www.nikebetterworld.com/about
- http://www.laurentiuswonen.com/jaarverslag2010/
- http://www.nintendo.com.au/gamesites/mariokartwii/
- http://2011.beercamp.com/
- http://www.beetle.com/
- http://activatedrinks.com/
- http://www.culturalsolutions.co.uk/
- http://kalendiar.lenm.cz/
- http://www.davegamache.com/sandbox/best-of-2010/
- https://victoriabeckham.landrover.com/INT
这篇关于如何做视差效果类似tokiolab.it?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!