码迷,mamicode.com
首页 > 其他好文 > 详细

两个gif图片动画效果

时间:2019-08-27 19:03:49      阅读:100      评论:0      收藏:0      [点我收藏+]

标签:z-index   require   round   city   top   动画效果   ESS   relative   图片   

 <div className="uploading-animation-tip-wrap">
          <img src={require(‘~/shared/assets/image/slide-uploading-animation-file-300-300.gif‘)} alt="" className="uploading-tip-animation-file" />
          <img src={require(‘~/shared/assets/image/slide-uploading-animation-progress-wave-300-300.gif‘)} alt="" className="uploading-tip-animation-progress" />
        </div>
.uploading-animation-tip-wrap {
      width: 66px;
      height: 66px;
      background-color: #f5f5f5;
      border-radius: 50%;
      position: relative;

      .uploading-tip-animation-file {
        width: 66px;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
      }
      .uploading-tip-animation-progress {
        width: 66px;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        opacity: 0.2;
      }
    }

 

两个gif图片动画效果

标签:z-index   require   round   city   top   动画效果   ESS   relative   图片   

原文地址:https://www.cnblogs.com/chenbeibei520/p/11419921.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!