当前位置:网站首页>韩流体小球加载动画
韩流体小球加载动画
2022-08-06 08:22: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>Document</title>
<style> * {
margin: 0; padding: 0; box-sizing: border-box; } #aniBox {
display: flex; justify-content: center; align-items: center; min-height: 100vh; background-color: #0c1b21; } .loader {
position: relative; width: 250px; height: 250px; filter: url(#gooey); animation: animate 16s linear infinite; } .loader i {
position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; transform: rotate(calc(45deg*var(--i))); } .loader i::before {
content: ""; position: absolute; top: 0; left: 0; width: 50px; height: 50px; background: linear-gradient(45deg, #fb4c4c, #ff0f07); border-radius: 50%; box-shadow: 0 0 20px hsl(352, 100%, 75%); } .rotate {
animation: animate 4s ease-in-out infinite; animation-delay: calc(-0.2s*var(--j)); } svg {
height: 0; width: 0; } @keyframes animate {
from {
transform: rotate(0deg); } to {
transform: rotate(360deg); } } </style>
</head>
<body>
<section id="aniBox">
<svg>
<filter id="gooey">
<feGaussianBlur in="SourceGraphic" stdDeviation="10"></feGaussianBlur>
<feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 21 -9"></feColorMatrix>
</filter>
</svg>
</section>
<script> let box = document.createElement('div'); box.className = 'loader'; aniBox.appendChild(box) for (let index = 1; index < 9; index++) {
let i = document.createElement('i'); i.style = '--i:' + index + ';'; box.appendChild(i); } for (let index = 0; index < 5; index++) {
let i = document.createElement('i'); i.style = '--j:' + index + ';'; i.className = 'rotate'; box.appendChild(i); } </script>
</body>
</html>
边栏推荐
- Chapter 13 Bayesian Network Practice
- How to improve the quality of articles without being "recommended and affected" by the post assistant
- How to limit command length to bounce shell
- Leetcode77. 组合
- Rock vocal | completes the safety operation, is not so difficult as you think
- [科普文] 搞 Web3 要学习哪些基础知识?
- 亿纬首件大圆柱电池系统产品成功下线
- yum离线安装
- About the third parameter of np.zeros(): c represents similar to c language, row priority; F represents column priority record
- ErrorCode 1045, the state 28000 error, rounding the solution
猜你喜欢
随机推荐
第十九章 自动化理论
[ CTF ]【天格】战队WriteUp-第六届“强网杯”全国安全挑战赛(初赛)
[科普文] 搞 Web3 要学习哪些基础知识?
CPU Architecture at a Glance
下雨小雲動畫
剑指offer专项突击版第22天
使用aggird组件实现下滑请求分页从而实现无限滚动的效果
C language force buckle the 59th spiral matrix ②.analog matrix
LeetCode——1047. 删除字符串中的所有相邻重复项
Ceph performance test plan collection list
UNIX environment advanced programming - the first chapter
Use the aggird component to implement sliding request paging to achieve the effect of infinite scrolling
Jetpack WorkManager 看这一篇就够了~
剑指 Offer 15. 二进制中1的个数,位运算,与运算
限制命令长度如何反弹shell
More than 40 a joke
QT custom event
一文3000字解析Pytest单元测试框架【保姆级教程】
Original Questions for Level 5 of China Electronics Society Youth Grade Examination
QT自定义事件









