我看到很多关于使用背景图片制作分层视差效果的解决方案... 我希望有人能提供一个解决方案或已有的插件,用于实现分层视差的 div / section,例如:
background: url(foo.png), url(foo2.png), url(foo3.png);
background-position: x x, x x, x x;
我看到很多关于使用背景图片制作分层视差效果的解决方案... 我希望有人能提供一个解决方案或已有的插件,用于实现分层视差的 div / section,例如:
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需要多个元素共同配合才能实现。