Javascript jquery通过单击幻灯片和弹出内容
我不知道为什么会这样。我正在使用jquery库2.1.1,并检查了不同的版本。goto被一个Javascript jquery通过单击幻灯片和弹出内容,javascript,jquery,slide,easing,bounce,Javascript,Jquery,Slide,Easing,Bounce,我不知道为什么会这样。我正在使用jquery库2.1.1,并检查了不同的版本。goto被一个 function goto(id, t){ //animate to the div id. $(".inner_slide") .animate( {"left": -($(id).position().left)}, 400
function goto(id, t){
//animate to the div id.
$(".inner_slide")
.animate(
{"left": -($(id).position().left)},
400
);
// add active class to the current link
$(t).addClass('active');
}
但不包括本部分(替换):
参数
duration
和easing
有什么问题?您在问它为什么有效?仅供参考,您可能必须为动画效果库包含jQuery UI。它完成了任务谢谢=)
.animate(
{"left": -($(id).position().left)}, {
duration: 'slow',
easing: 'easeOutBounce'
});