欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jQuery jQuery.fx.interval 屬性

實(shí)例

以較少的幀數(shù)來運(yùn)行 <div> 元素的動畫:

$("#toggle").on("click",function(){
  $("div").toggle(5000);
});
$("#interval").on("click",function(){
  jQuery.fx.interval = 500;
});

親自試一試

定義和用法

jQuery.fx.interval 屬性用于改變以毫秒計(jì)的動畫運(yùn)行速率。可操作該屬性來調(diào)整動畫運(yùn)行的每秒幀數(shù)。

默認(rèn)值是 13 毫秒。該屬性常用于修改動畫運(yùn)行的每秒幀數(shù)。

降低這個值能夠使動畫在更快的瀏覽器中運(yùn)行得更流暢,但這么做也行會影響性能。

提示:由于 jQuery 使用一個全局的間隔時間,為了使該屬性生效,動畫應(yīng)該不在運(yùn)行或者首先停止所有動畫。

注釋:該屬性在支持 requestAnimationFrame 屬性的瀏覽器中無效,比如 Google Chrome 11。

語法

jQuery.fx.interval = milliseconds;
屬性 描述
milliseconds 必需。規(guī)定以毫秒計(jì)的動畫運(yùn)行速率。默認(rèn)是 13 毫秒。