首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >微信小程序--加载动画:水波涟漪效果

微信小程序--加载动画:水波涟漪效果

作者头像
海轰Pro
发布于 2021-04-12 10:48:43
发布于 2021-04-12 10:48:43
1.7K0
举报

效果图

Demo源码

wxml

代码语言:javascript
复制
<view  class="loading">
<view class="circle">
<view class="wave"></view>
</view>
</view>

wxss

代码语言:javascript
复制
.loading {
  width: 100vw;
  height: 100vh;
  background-color: #2c3e50;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle {
  width: 150px;
  height: 150px;
  background-color: #7591AD;
  border: 10px solid #2c3e50;
  box-shadow: 0 0 0 5px #F97F51;
  border-radius: 50%;
}

.wave {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #F97F51;
  border-radius: 50%;
  box-shadow: inset 0 0 50px #EC3E27;
  overflow: hidden;
  z-index: 0;
}

.wave::before,
.wave::after {
  position: absolute;
  content: "";
  width: 200%;
  height: 200%;
  top: 0;
  left: 50%;
.
.
.

.
.
.


.
.
.
完整源码见
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2021-01-27 ,如有侵权请联系 cloudcommunity@tencent.com 删除
目录
  • 效果图
  • Demo源码
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档