網(wǎng)站首頁 編程語言 正文
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
相關(guān)推薦
- 2022-10-04 Redis分布式鎖之紅鎖的實(shí)現(xiàn)_Redis
- 2022-07-13 SpringCloud之Eureka注冊中心
- 2022-05-21 云原生技術(shù)kubernetes之volumes容器的使用_云其它
- 2022-07-14 Android實(shí)現(xiàn)ViewFlipper圖片動畫滑動_Android
- 2022-09-29 Shell函數(shù)返回值方式_linux shell
- 2022-11-19 詳解C語言內(nèi)核中的自旋鎖結(jié)構(gòu)_C 語言
- 2022-09-13 教你一招完美解決vscode安裝go插件失敗問題_Golang
- 2023-07-30 使用Elementui元素動態(tài)增減表單組件
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運(yùn)行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運(yùn)算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認(rèn)證信息的處理
- Spring Security之認(rèn)證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯(cuò)誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實(shí)現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡單動態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊(duì)列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支