<html>
<meta charset="UTF-8">
<head>
<title>动态渐变</title>
</head>
<body>
<style>
*{margin:0px;padding:0px}
.page {height: 900px;
background: #0299d8;
background: linear-gradient(45deg, #5a3694 0%, #13bdce 33%, #0094d9 66%, #6fc7b5 100%);
background-size: 400%;
background-position: 0% 100%;
animation: gradient 7.5s ease-in-out infinite;}
@keyframes gradient{50%{background-position:100% 0}}
</style>
<div class="page"></div>
</body>
</html>
css3动态渐变动画
于 2019-09-06 15:47:03 首次发布