当前位置:网站首页>【无标题】
【无标题】
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>
边栏推荐
猜你喜欢
Pytest+request+Allure实现接口自动化框架
9.1-----24. Swap the nodes in the linked list in pairs
Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules
gpio子系统和pinctrl子系统(上)
边缘计算的三个关键好处
帮助安全红队取得成功的11条建议
概率模型校准
The most fierce "employee" in history, madly complaining about the billionaire boss Xiao Zha: So rich, he always wears the same clothes!
不会吧!不会吧!居然还有人不知道重绘以及回流
MT4/MQL4入门到精通EA教程第一课-MQL语言常用函数(一)OrderSend()函数
随机推荐
数字 07 verilog仿真实例
LintCode 146. 大小写转换 II
Etcd realize large-scale application service management of actual combat
Likou Brush Question Record 8.1-----206. Reverse linked list
Postman接口测试【官网】最新版本 安装及使用入门教程
最近看到很多人想自学或者报班但是不清楚如何选择,我今天就和大家说说
全志通过fastboot烧写boot.img
嵌入式设备驱动开发
The last exam before the NPDP revision!caution
My thoughts on software development
Redis系列文章导航
2.1-----27. Remove elements
OJ:L3-001 凑零钱 DFS
2020.12.4 log
数仓第二篇: 数据模型(维度建模)
ApiFile配置环境
1261. 在受污染的二叉树中查找元素
mysql 5.7 入坑
力扣刷题记录7.1-----707. 设计链表
Apache站点下载大文件自动中断或者文件不完整