模仿小程序启动页面动画

得意时要看淡,失意时要看开。不论得意失意,切莫大意;不论成功失败,切莫止步。志得意满时,需要的是淡然,给自己留一条退路;失意落魄时,需要的是泰然,给自己觅一条出路模仿小程序启动页面动画,希望对大家有帮助,欢迎收藏,转发!站点地址:www.bmabk.com,来源:原文

 

模仿小程序启动页面动画
效果

样式基于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
	}
}

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/155952.html

(0)
飞熊的头像飞熊bm

相关推荐

发表回复

登录后才能评论
极客之音——专业性很强的中文编程技术网站,欢迎收藏到浏览器,订阅我们!