189 8069 5689

css+html怎么实现SkeletonScreen加载占位图动画效果

这篇文章将为大家详细讲解有关css+html怎么实现Skeleton Screen加载占位图动画效果,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

创新互联坚持“要么做到,要么别承诺”的工作理念,服务领域包括:成都网站设计、网站制作、企业官网、英文网站、手机端网站、网站推广等服务,满足客户于互联网时代的石林网站设计、移动媒体设计的需求,帮助企业找到有效的互联网解决方案。努力成为您成熟可靠的网络建设合作伙伴!

效果

自上而下渐隐渐现

css+html怎么实现Skeleton Screen加载占位图动画效果

源码

html,用的angular语法,只要做简单的修改就可以成为你需要的语法


        
        
        
      

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;
      }
    }

关于“css+html怎么实现Skeleton Screen加载占位图动画效果”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。


新闻标题:css+html怎么实现SkeletonScreen加载占位图动画效果
文章源于:http://cdxtjz.cn/article/jcespo.html

其他资讯