【发布时间】:2015-02-13 22:07:37
【问题描述】:
我只能说我在测试航路点,一旦我添加了第二个函数,第一个函数就不再起作用了。这是为什么呢?
$(document).ready(function() {
$(".black").waypoint(function(){
TweenMax.to(this, 2, {right:"0", ease:Power2.easeInOut})
},{offset:'50%'});
$(".white").waypoint(function(){
TweenMax.to(this, 2, {left:"0", ease:Power2.easeInOut})
},{offset:'50%'});
});
【问题讨论】:
-
您使用的是哪个版本的 jQuery Waypoints?
标签: javascript jquery jquery-waypoints