### 我们需要实现的是如下效果: ![](https://cnd.haser.top/2019/10/19/6.gif) html代码 ```html HAS的日记-背景动态渐变实例效果 背景动态渐变实例效果 ``` CSS代码 ```css body { margin: 0; width: 100%; height: 1200px; font-family: "Exo", sans-serif; color: #fff; background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab); background-size: 400% 400%; animation: gradientBG 15s ease infinite; } @keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } .container { width: 100%; position: absolute; top: 35%; text-align: center; } h1 { font-weight: 300; } ``` 源码下载 Last modification:May 18, 2021 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 请我喝一瓶农夫山泉嘛?
One comment
电信私服传奇私服的吸引力?:https://501h.com/jinbi/13796.html