CSS3 물결 확산 애니메이션 구현

831 단어 CSS
HTML 구조:

css样式:

.water{
	width: 50px;
	height: 50px;
	position: relative;
}
.water .point{
	position: absolute;
	border-radius: 50%;
	animation: border 2s linear infinite;
}
.water .point2{
	-webkit-animation-delay: 0.5s;
}
.water .point3{
	-webkit-animation-delay: 1s;
}
.water .point4{
	-webkit-animation-delay: 1.5s;
}
@keyframes border{
	from {
		width: 0;
		height: 0;
		top: 50%;
		left: 50%;
		background-color: rgba(235,51,36,1);
	}
	to {
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		background-color: rgba(235,51,36,0);
	}
}

 

좋은 웹페이지 즐겨찾기