<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # jQuery UI API - .effect() ## 所屬類別 [特效(Effects)](ref-effects.html) | [特效核心(Effects Core)](ref-effects-core.html) | [方法(Methods)](ref-methods.html) ## 用法 **描述:**對一個元素應用動畫特效。 **返回:**[jQuery](//api.jquery.com/Types/#jQuery) ``` .effect( effect [, options ] [, duration ] [, complete ] ) ``` | 參數 | 類型 | 描述 | 默認值 | | --- | --- | --- | --- | | effect | String | 一個字符串,指示要使用哪一種[特效](api-category-effects.html)。 | | options | Object | 特效具體的設置和 [easing](api-easings.html)。 | | duration | Number 或 String | 一個字符串或一個數字,指定動畫將運行多久。 | 400 | | complete | Function() | 一旦動畫完成時要調用的函數。 | ``` .effect( options ) ``` | 參數 | 類型 | 描述 | | --- | --- | --- | | options | Object | 所有的動畫設置。唯一一個必需的屬性是 effect。 * **effect** 類型:String 描述:一個字符串,指示要使用哪一種[特效](api-category-effects.html)。 * **easing**(默認值:`"swing"`) 類型:String 描述:一個字符串,指示要使用的 [easing](api-easings.html) 函數。 * **duration**(默認值:`400`) 類型:Number 或 String 描述:一個字符串或一個數字,指定動畫將運行多久。 * **complete** 類型:Function() 描述:一旦動畫完成時要調用的函數。 * **queue**(默認值:`true`) 類型:Boolean 或 String 描述:一個布爾值,指示是否將動畫放在特效隊列中。如果是 false,動畫將立即開始。**自 jQuery 1.7 起**,queue 選項也接受一個字符串,在這種情況下,動畫添加到由字符串表示的隊列中。 `.effect()` 方法對一個元素應用了一個命名的動畫 [特效](api-category-effects.html) 。許多特效也支持顯示或隱藏模式,這些可通過 [`.show()`](api-show.html)、[`.hide()`](api-hide.html) 和 [`.toggle()`](api-toggle.html) 方法來完成。 ## 實例 對一個 div 應用反彈特效(Bounce Effect)。 ``` <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>.effect() 演示</title> <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> <style> div { width: 100px; height: 100px; background: #ccc; border: 1px solid #000; } </style> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script> </head> <body> <p>點擊任意地方應用特效。</p> <div></div> <script> $( document ).click(function() { $( "div" ).effect( "bounce", "slow" ); }); </script> </body> </html> ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看