我见过很多parallaxing分层divs或部分与背景图像的解决方案......我希望有人有一个解决方案或现有插件的知识parallaxing与多个CSS背景的div /节例如:Parallax多个CSS背景
background: url(foo.png), url(foo2.png), url(foo3.png);
background-position: x x, x x, x x;
我见过很多parallaxing分层divs或部分与背景图像的解决方案......我希望有人有一个解决方案或现有插件的知识parallaxing与多个CSS背景的div /节例如:Parallax多个CSS背景
background: url(foo.png), url(foo2.png), url(foo3.png);
background-position: x x, x x, x x;
(Stellar.js)http://markdalgleish.com/projects/stellar.js/ --->这是一个JavaScript库专门为parallaxing多个CSS背景的目的。示例 - >http://markdalgleish.com/projects/stellar.js/demos/backgrounds.html
这可能会帮助您解答问题。干杯!
我没有答案(也不是名誉上以前的评论),但知道Stellar.js是不幸的是(仍然)没有能力正是你追求:https://github.com/markdalgleish/stellar.js/issues/45
Stellar.js要求多个元素工作。
非常好的图书馆和易于使用! –
完全正确! –