模仿小程序启动页面动画

 

效果

样式基于colorUI 

<template>
	<view class="flex flex-direction justify-center startPannel">
		<image src="../../static/logo.png" class="cu-avatar lg round margin-left startLogo"></image>
		<view class="text-center startTitle text-xl">
			仓鼠的仓
		</view>
		<view class="stage">
			<view class="dot-flashing"></view>
		</view>
	</view>
</template>
page{
	background-color: #fff;
}
.startPannel {
	padding-top: 61upx;
}
.startTitle {
	margin-top: 30upx;
}
.startLogo {
	margin: 0 auto;
}
.stage {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40upx 0;
	margin: 0 -5%;
	overflow: hidden;
}
.dot-flashing::before {
	left: -30upx;
	animation: dotFlashing 0.5s infinite alternate;
	animation-delay: 0s;
}
.dot-flashing {
	position: relative;
	width: 12upx;
	height: 12upx;
	border-radius: 50%;
	background-color: #acacac;
	color: #acacac;
	animation: dotFlashing 0.5s infinite linear alternate;
	animation-delay: .25s;
}

.dot-flashing::after {
	left: 30upx;
	animation: dotFlashing 0.5s infinite alternate;
	animation-delay: .5s;
}
.dot-flashing::before,
.dot-flashing::after {
	content: '';
	display: inline-block;
	position: absolute;
	top: 0;
	width: 12upx;
	height: 12upx;
	border-radius: 50%;
	background-color: #acacac;
	color: #acacac;
}
@keyframes dotFlashing {
	0% {
		background-color: #acacac
	}

	100% {
		background-color: #6c6c6c
	}
}

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值