433day(动画实例:海岸)

《2018年12月11日》【连续433天】

标题:动画实例:海岸;
内容:

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
	* {
		margin: 0;
		padding: 0;
	}
	html, body {
		width: 100%;
		height: 100%;
		background-color: #009BB2;
	}
	.sun {
		width: 100px;
		height: 100px;
		margin: 50px;
		position: relative;
	}
	.sun::before, .sun::after {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%,-50%);
		width: 50px;
		height: 50px;
		background: rgba(255,255,255,.8);
		border-radius: 50%;
		animation: sun 2s infinite;
	}
	.sun::after {
		width: 80px;
		height: 80px;
		background: rgba(255, 255, 255, 0.6);
		animation: sun 3s infinite;
	}
	img {
		width: 100%;
		height: auto;
		position: absolute;
		left: 0;
		bottom: 0;
	}
	img {
		animation: move 2s linear infinite;
	}
	img:last-child {
		animation: move 2s linear 1s infinite;
	}
	@keyframes move {
		0% {
			bottom: 0;
		}
		50% {
			bottom: -50px;
		}
		100% {
			bottom: 0;
		}
	}
	@keyframes sun {
		0% {
			box-shadow: 0px 0px 5px rgba(255,255,255,.7);
			transform: translate(-50%,-50%)scale(1);
		}
		50% {
			box-shadow: 0px 0px 30px rgba(255,255,255,.7);
			transform: translate(-50%,-50%)scale(1.1);
		}
		100% {
			box-shadow: 0px 0px 5px rgba(255,255,255,.7);
			transform: translate(-50%,-50%) scale(1);
		}
	}
	</style>
</head>
<body>
	<div class="sun"></div>
	<img src="images/1.png" alt="">
	<img src="images/2.png" alt="">
</body>
</html>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值