我已经看到了很多用于视差分层 div 或带有背景图像的部分的解决方案...我希望有人有解决方案或了解现有的插件来使具有多个 CSS 背景的 div/部分产生视差,例如:
background: url(foo.png), url(foo2.png), url(foo3.png);
background-position: x x, x x, x x;
最佳答案
我没有答案(也没有评论前一个的声誉)但我知道 Stellar.js 不幸的是(仍然)不能完全满足您的需求:https://github.com/markdalgleish/stellar.js/issues/45
Stellar.js 需要多个元素才能工作。
关于css - 视差多个 CSS 背景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13299364/