網(wǎng)站首頁 編程語言 正文
css 波紋擴(kuò)散效果
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>Document</title>
</head>
<style type="text/css">
.dot {
animation: sploosh 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.dot2 {
animation: sploosh2 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.dot3 {
animation: sploosh3 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.dot,.dot2,.dot3{
height: 100px;
width: 100px;
font-size: 20px;
color: #fff;
line-height: 100px;
text-align: center;
border-radius: 100%;
position: absolute;
z-index: 10;
animation-iteration-count:infinite;
background: transparent;
}
@keyframes sploosh {
0% {
box-shadow: 0 0 0 0px rgba(255, 220, 1, 0.7);
background: rgba(255, 220, 1, 0.7);
}
100% {
box-shadow: 0 0 0 30px rgba(255, 220, 1, 0);
background: rgba(255, 220, 1, 0);
}
}
@keyframes sploosh2 {
0% {
box-shadow: 0 0 0 0px rgba(255, 220, 1, 0.7);
background: rgba(255, 220, 1, 0.7);
}
100% {
box-shadow: 0 0 0 20px rgba(255, 220, 1, 0);
background: rgba(255, 220, 1, 0.3);
}
}
@keyframes sploosh3 {
0% {
box-shadow: 0 0 0 0px rgba(255, 220, 1, 0.7);
background: rgba(255, 220, 1, 0.7);
}
100% {
box-shadow: 0 0 0 10px rgba(255, 220, 1, 0);
background: rgba(255, 220, 1, 1);
}
}
</style>
<body>
<div style="height:100px;width:100px;border-radius:100%;position: relative;margin:200px auto; ">
<div class="dot">
<div class="dot2">
<div class="dot3">每日簽到</div>
</div>
</div>
</div>
</body>
</html>
原文鏈接:https://blog.csdn.net/zz975896590/article/details/119991127
相關(guān)推薦
- 2022-11-06 pandas?dataframe?drop函數(shù)介紹_python
- 2022-05-22 ansible管理工具的環(huán)境及部署安裝_服務(wù)器其它
- 2023-03-02 SQLServer?清理日志的實(shí)現(xiàn)_MsSql
- 2022-07-11 SOC驗(yàn)證環(huán)境的啟動(dòng)方式
- 2022-08-16 hive數(shù)據(jù)倉庫新增字段方法_數(shù)據(jù)庫其它
- 2022-10-27 pytorch中dataloader?的sampler?參數(shù)詳解_python
- 2022-09-14 python?服務(wù)器批處理得到PSSM矩陣的問題_python
- 2022-03-31 python猜單詞游戲的實(shí)現(xiàn)_python
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運(yùn)行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲(chǔ)小
- 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)-簡單動(dòng)態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對(duì)象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊(duì)列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支