gpt4 book ai didi

javascript - 使用 .hide ('slide' 缓和)?

转载 作者:数据小太阳 更新时间:2023-10-29 04:40:47 26 4
gpt4 key购买 nike

是否有可能对此进行缓和:

('#sideBar').hide('slide', {direction: 'right' }, 
800, function(){...});

目前它非常紧张,因为它可能正在移动...... 100 - 500 像素(取决于内容)。我一直在寻找谷歌,大多数人都说要使用缓动,但是在查看文档时我看不到缓动的属性。

最佳答案

您可以在 options 对象(第二个参数)中指定 easing 属性:

$('#sideBar').hide('slide', { direction: 'right', easing: 'easeOutBounce' }, 
800, function(){...});

Check out the easing documentation

Here's an example

关于javascript - 使用 .hide ('slide' 缓和)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16480004/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com