【问题标题】:jquery easeOutBounce horizontaljquery easeOutBounce 水平
【发布时间】:2018-07-06 19:37:04
【问题描述】:

我正在尝试做一个 easeOutBounce 水平动画,但我所做的只是垂直 easeOutBounce,这样:$('#tester').slideToggle(1000,'easeOutBounce');

这是我的 jsfiddle: https://jsfiddle.net/newzy08/xpvt214o/372035/

我还没有看到任何带有 jquery slide() 函数的easeOutBounce 效果...

对于从垂直到水平的easeOutBounce 切换,我可以对我的代码进行哪些更改?

谢谢!

【问题讨论】:

    标签: jquery jquery-ui jquery-animate jquery-easing


    【解决方案1】:

    在你的 css 中稍微改变一下使用它

    $('#tester').animate({
      width: '300px'
    }, {
      duration: 1000,
      specialEasing: {
        width: "easeOutBounce"
      }
    });
    

    https://jsfiddle.net/hnpt4xgb/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多