我正在尝试实现scrollorama (http://johnpolacek.github.io/scrollorama/)的“pin”特性,但我不确定我使用了哪些代码部分来放入我自己的文件中。
我该在哪里调整它在屏幕上的固定位置,等等?这是如何直接连接到'#unpin‘和h2元素的呢?
发布于 2014-02-01 18:48:56
锁定的步骤
controller.pin($('#examples-2'), 3000, {
anim: (new TimelineLite())
.append(
TweenMax.fromTo($('#move-it'), .5,
{css:{left: -200, top: 500}, immediateRender:true},
{css:{top: -400}})
)
.append(
TweenMax.to($('#move-it'), .5,
{css:{left: 0}})
)
});删除接点的步骤
controller.removePin('#examples-2', false);有关更多详细信息,请访问超级scrollama页面http://johnpolacek.github.io/superscrollorama/
https://stackoverflow.com/questions/19650372
复制相似问题