<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Liquid FireEmber 應(yīng)用動畫支持

          聯(lián)合創(chuàng)作 · 2023-10-02 15:36

          Liquid Fire 為 Ember 應(yīng)用提供了完整的動畫支持。

          示例代碼:

          import { animate, stop } from "vendor/liquid-fire";
          
          export function crossFade(oldView, insertNewView, opts) {
            stop(oldView);
            return insertNewView().then(function(newView) {
              return Promise.all([
                animate(oldView, {opacity: 0}, opts),
                animate(newView, {opacity: [1, 0]}, opts)
              ]);
            });
          });
          
          export function fade(oldView, insertNewView) {
            stop(oldView);
            return animate(oldView, {opacity: 0})
              .then(insertNewView)
              .then(function(newView){
                return animate(newView, {opacity: [1, 0]});
              });
          });
          瀏覽 19
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  亚洲成人热区 | 草久97在线视频免费观 | 男人天堂网在线视频 | 欧美在线91 豆花 | 国产三级韩国三级日本三级99 |