網站首頁 編程語言 正文
css 水波紋效果
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>水波紋效果</title>
</head>
<body>
<div class="wave">
水波紋效果
<div class="wave1" style="top: 50%;"></div>
<div class="wave2" style="top: 50%;"></div>
<div class="wave3" style="top: 50%;"></div>
</div>
<style>
.wave{
position: relative;
border: 1px solid silver;
width: 100px;
height: 100px;
border-radius: 50%;
line-height: 50px;
margin: 0 auto;
font-size: 14px;
text-align: center;
overflow: hidden;
animation: water-wave linear infinite;
}
.wave1{
position: absolute;
top: 40%;
left: -25%;
background: #33cfff;
opacity: .7;
width: 200%;
height: 200%;
border-radius: 40%;
animation: inherit;
animation-duration: 10s;
}
.wave2{
position: absolute;
top: 40%;
left: -35%;
background: #0eaffe;
opacity: .7;
width: 200%;
height: 200%;
border-radius: 35%;
animation: inherit;
animation-duration: 14s;
}
.wave3{
position: absolute;
top: 50%;
left: -35%;
background: #0f7ea4;
opacity: .3;
width: 200%;
height: 200%;
border-radius: 33%;
animation: inherit;
animation-duration: 22s;
}
@keyframes water-wave{
0% {transform: rotate(0deg);}
100% {transform: rotate(360deg);}
}
</style>
</body>
</html>
原文鏈接:https://blog.csdn.net/zz975896590/article/details/119991126
相關推薦
- 2022-05-29 C#實現文字轉語音功能_C#教程
- 2022-10-25 C++中命名空間(namespace)詳解及其作用介紹_C 語言
- 2022-01-17 在日常前端開發工作中,需要養成哪些比較好的習慣
- 2022-04-25 C#使用Npoi導出Excel并合并行列_C#教程
- 2022-03-31 QT實現單詞檢索軟件的示例代碼_C 語言
- 2022-07-17 Android?studio實現簡單計算器的編寫_Android
- 2022-05-08 C++中如何修改const變量你知道嗎_C 語言
- 2022-12-15 Pytorch加載數據集的方式總結及補充_python
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支