亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

css+html實現(xiàn)Skeleton Screen 加載占位圖動畫效果(帶動畫)

  發(fā)布時間:2020-05-19 14:36:14   作者:jsure   我要評論
這篇文章主要介紹了css+html實現(xiàn)Skeleton Screen 加載占位圖動畫效果(帶動畫),本文通過實例代碼給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下

效果

自上而下漸隱漸現(xiàn)

源碼

html,用的angular語法,只要做簡單的修改就可以成為你需要的語法

<div *ngFor="let item of [1,1,1],index as index" class="skeletonItem anim-opacity2 animation-delay{{index}}">
        <div class="skeletonText "></div>
        <div class="skeletonText" style="width:70%"></div>
        <div class="skeletonText" style="width:40%"></div>
      </div>

css

.skeletonItem {
      padding: 16px;
      border-bottom: 3px solid #eee;
    }

    .skeletonText {
      height: 16px;
      background: #e2e2e2;
      margin-top: 12px;
      border-radius: 4px;
    }

    .skeletonText:first-child {
      margin-top: 0;
    }
    .anim-opacity2 {
      animation: 1.5s opacity2 0s infinite;
    }
    .animation-delay0 {
      animation-delay: 0s;
    }
    .animation-delay1 {
      animation-delay: 0.5s;

    }
    .animation-delay2 {
      animation-delay: 1s;
    }

    @keyframes opacity2 {
      0% {
        opacity: 0.5
      }
      50% {
        opacity: 1;
      }
      100% {
        opacity: 0.5;
      }
    }

總結(jié)

到此這篇關(guān)于css+html實現(xiàn)Skeleton Screen 加載占位圖動畫效果(帶動畫)的文章就介紹到這了,更多相關(guān)Skeleton Screen 加載占位圖內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持腳本之家!

相關(guān)文章

  • CSS實現(xiàn)Skeleton Screen骨架屏效果

    這篇文章主要介紹了CSS實現(xiàn)Skeleton Screen骨架屏效果,本文通過實例代碼給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2020-06-16

最新評論