[英]jquery easeOutBounce horizontal
I'm trying to do a easeOutBounce horizontal animation, but all i succeed to do is vertical easeOutBounce, with this : $('#tester').slideToggle(1000,'easeOutBounce');
我正在尝试做一个easyOutBounce水平动画,但是我成功做到的是垂直的easyOutBounce,它是这样的:
$('#tester').slideToggle(1000,'easeOutBounce');
here is my jsfiddle : https://jsfiddle.net/newzy08/xpvt214o/372035/ 这是我的jsfiddle: https ://jsfiddle.net/newzy08/xpvt214o/372035/
I haven't seen any easeOutBounce effect with jquery slide() function... 我还没有看到带有jQuery slide()函数的任何easyOutBounce效果...
What may i change in my code for switching from vertical to horizontal easeOutBounce ? 从垂直到水平easeOutBounce切换到代码中,我可以更改什么?
Thanks ! 谢谢 !
use this with a bit of change in your css 在CSS中进行一些更改即可使用
$('#tester').animate({
width: '300px'
}, {
duration: 1000,
specialEasing: {
width: "easeOutBounce"
}
});
https://jsfiddle.net/hnpt4xgb/ https://jsfiddle.net/hnpt4xgb/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.