網站首頁 編程語言 正文
CSS3動畫:wifi 焦點擴散漸變 (動畫)
效果圖 · 演示:
Demo 代碼如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>焦點擴散漸變動畫</title>
<style type="text/css">
*, ::after, ::before {
box-sizing: border-box;
}
.flash-icon {
position: absolute;
top: 50%;
left: 10px;
z-index: 2;
height: 10px;
width: 10px;
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
background-color: #c80000;
margin-top: -5px;
}
.flash-icon:before {
content: "";
position: absolute;
height: 10px;
width: 10px;
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border: 1px solid #c80000;
top: 50%;
margin-top: -5px;
left: 50%;
margin-left: -5px;
animation-name: blink-a;
animation-duration: 2s;
animation-iteration-count: infinite;
}
.flash-icon:after {
content: "";
position: absolute;
height: 10px;
width: 10px;
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border: 1px solid #c80000;
top: 50%;
margin-top: -5px;
left: 50%;
margin-left: -5px;
animation-name: blink-b;
animation-duration: 2s;
animation-delay: 1s;
animation-iteration-count: infinite;
}
@keyframes blink-a {
0% {transform: scale(1, 1);}
100% {transform: scale(3, 3); opacity: 0;}
}
@keyframes blink-b {
0% {transform: scale(1, 1);}
100% {transform: scale(3, 3); opacity: 0;}
}
</style>
</head>
<body >
<div class="fath" style="width: 100px;height: 100px;margin: 100px auto;position: relative;">
<span class="flash-icon"></span>
</div>
</body>
</html>
以上就是關于“ animate動畫:wifi 焦點擴散漸變 (動畫)”的全部內容。
原文鏈接:https://blog.csdn.net/qq_35393869/article/details/118930765
相關推薦
- 2022-12-24 Docker自定義網絡詳解_docker
- 2022-06-14 golang并發安全及讀寫互斥鎖的示例分析_Golang
- 2022-11-15 Python中class內置方法__init__與__new__作用與區別解析_python
- 2023-05-31 Pandas提取含有指定字符串的行(完全匹配,部分匹配)_python
- 2022-07-10 詳解BlockingQueue阻塞隊列的使用
- 2023-03-20 Redis腦裂導致數據丟失的解決_Redis
- 2022-08-10 C++中string字符串分割函數split()的4種實現方法_C 語言
- 2022-09-01 MongoDB實現查詢、分頁和排序操作以及游標的使用_MongoDB
- 最近更新
-
- 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同步修改后的遠程分支