我使用了来自http://pioul.fr/jquery-diyslider
的jquery滑块上面他的例子显示params设置为:
$(window).load(function(){
$(".slider").diyslider({
width: "400px", // width of the slider
height: "200px", // height of the slider
display: 3, // number of slides you want it to display at once
loop: false, // disable looping on slides
animationDuration: 300
});
他说你可以用" animationEasing"添加Easing,所以我修改了这个例子:
$(window).load(function(){
$(".slider").diyslider({
width: "400px", // width of the slider
height: "200px", // height of the slider
display: 3, // number of slides you want it to display at once
loop: false, // disable looping on slides
animationDuration: 300,
animationEasing: 'easeOutCubic'
});
但它并不容易。我也试过https://jqueryui.com/resources/demos/effect/easing.html上的其他宽松选项无济于事。我错过了什么吗?感谢。