模仿小程序启动页面动画

 

模仿小程序启动页面动画_第1张图片 效果

样式基于colorUI 

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
	}
}

 

你可能感兴趣的:(笔记)