首页 > 微信 > 详细

微信小程序--四色花瓣

时间:2021-01-29 15:10:05      阅读:27      评论:0      收藏:0      [点我收藏+]

效果展示

技术分享图片

Demo代码

wxml

    <view class="loading-screen">
        <view class="loading">
            <view class="a flour" ></view>
            <view class="a flour" ></view>
            <view class="a flour" ></view>
            <view class="a flour" ></view>
        </view>
    </view>

wxss

page{
  margin: 0;
  padding: 0;
}

.loading-screen{
  width: 100%;
  height: 100vh;
  background-color: #2e2e2e;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading{
  width: 80px;
  display: flex;
  flex-wrap: wrap;
  animation: rotate 3s linear infinite;
}

@keyframes rotate{
  to{
      transform: rotate(360deg);
  }
}

.loading .flour{
  width: 32px;
  height: 32px;
  background-color: #00cec9;
  margin: 4px;
  animation: scale 1.5s linear infinite;
}

@keyframes scale{
  50%{
      transform: scale(1.2);

.
.
.
.
完整源码获取途径
见文末引言

微信小程序--四色花瓣

原文:https://www.cnblogs.com/haihongpro/p/14344284.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!