當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


JQuery UI Resizable animateEasing用法及代碼示例

用法:

animateEasing
類型:String
默認:"swing"
使用 animate 選項時應用哪個 easing

代碼示例:

使用指定的animateEasing 選項初始化可調整大小:

$( ".selector" ).resizable({
  animateEasing: "easeOutBounce"
});

初始化後獲取或設置animateEasing選項:

// Getter
var animateEasing = $( ".selector" ).resizable( "option", "animateEasing" );
 
// Setter
$( ".selector" ).resizable( "option", "animateEasing", "easeOutBounce" );

相關用法


注:本文由純淨天空篩選整理自jqueryui.com大神的英文原創作品 Resizable animateEasing。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。