V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
Elethom
V2EX  ›  JavaScript

使用 stellar.js 制作 parallax scrolling (视差滚动) 效果

  •  
  •   Elethom · 2014-03-23 20:45:29 +08:00 · 4857 次点击
    这是一个创建于 3686 天前的主题,其中的信息可能已经有所发展或是发生改变。
    第 1 条附言  ·  2014-03-30 21:46:11 +08:00
    使视差滚动用 stellar.js 支持百分比格式的 background position 属性 /t/106553
    3 条回复    1970-01-01 08:00:00 +08:00
    RIcter
        1
    RIcter  
       2014-03-23 22:10:21 +08:00
    挺赞;P
    artwalk
        2
    artwalk  
       2014-03-23 22:38:10 +08:00
    好神奇
    bsbgong
        3
    bsbgong  
       2014-03-24 15:03:55 +08:00
    这段时间正好做了个parallax效果
    设计人员给我参考的这个页面: http://razorfish.github.io/Parallax-JS

    不过我嫌计算前景背景的差别滚动太麻烦,就直接使用background-attachment的fixed了,背景不动。简单的parallax。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2961 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 15:15 · PVG 23:15 · LAX 08:15 · JFK 11:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.