当前位置:网站首页>【无标题】
【无标题】
2022-08-09 02:30:00 【JiuMeilove】
效果示例
代码示例
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>波浪背景动画</title>
<style> body {
margin: auto; font-family: -apple-system, BlinkMacSystemFont, sans-serif; overflow: auto; background: linear-gradient(315deg, rgba(101, 0, 94, 1) 3%, rgba(60, 132, 206, 1) 38%, rgba(48, 238, 226, 1) 68%, rgba(255, 25, 25, 1) 98%); animation: gradient 15s ease infinite; background-size: 400% 400%; background-attachment: fixed; } @keyframes gradient {
0% {
background-position: 0% 0%; } 50% {
background-position: 100% 100%; } 100% {
background-position: 0% 0%; } } .wave {
background: rgb(255 255 255 / 25%); /* background: rgba(255, 255,255, .1); */ border-radius: 1000% 1000% 0 0; position: fixed; width: 200%; height: 12em; animation: wave 10s -3s linear infinite; transform: translate3d(0, 0, 0); opacity: 0.8; bottom: 0; left: 0; z-index: -1; } .wave:nth-of-type(2) {
bottom: -1.25em; animation: wave 18s linear reverse infinite; opacity: 0.8; } .wave:nth-of-type(3) {
bottom: -2.5em; animation: wave 20s -1s reverse infinite; opacity: 0.9; } @keyframes wave {
2% {
transform: translateX(1); } 25% {
transform: translateX(-25%); } 50% {
transform: translateX(-50%); } 75% {
transform: translateX(-25%); } 100% {
transform: translateX(1); } } </style>
</head>
<body>
<div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
</div>
</body>
</html>
边栏推荐
猜你喜欢

全志平台双路LVDS配置

【izpack】使用izpack为你的程序提供安装程序封装

Likou Brush Question Record 8.1-----206. Reverse linked list

企业从云服务的承诺支出中获得最大收益的四种方法

10.1-----19. Delete the Nth node from the bottom of the linked list

MT4/MQL4入门到精通EA教程第一课-MQL语言常用函数(一)OrderSend()函数

最强分布式锁工具:Redisson

自动化测试框架总结

历史最全DL相关书籍、课程、视频、论文、数据集、会议、框架和工具整理分享

Line segment tree of knowledge
随机推荐
全志平台双路LVDS配置
帮助安全红队取得成功的11条建议
企业从云服务的承诺支出中获得最大收益的四种方法
gpio子系统和pinctrl子系统(上)
Open3D 点云曲率计算
物联网未来:未来五年的预期
Yii2开启 Schema 缓存
MySQL/Oracle字符串分割
Open3D 随机采样
使网络安全威胁风险更高和成本更高的五个趋势
9.1-----24. Swap the nodes in the linked list in pairs
The first lesson of HNUMSC-C language
C#计算SHA1加密和base64编码
<爆>2022中文版-《海外博士申请指南-材料准备、时间线、套磁、面试及录取》免费分享
MT4/MQL4入门到精通外汇EA教程第一课 认识MetaEditor
2022年自然语言处理校招社招实习必备知识点盘点分享
Etcd realize large-scale application service management of actual combat
LintCode 146. 大小写转换 II
SQLite切换日志模式优化
opencv在图像上长按左键画矩形单击右键清除