当前位置:网站首页>Page Loading Animation_Gradient Color Rotating Small Circle
Page Loading Animation_Gradient Color Rotating Small Circle
2022-08-06 08:22:00 【JiuMeilove】
Loading animation effect icon
源码
<!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>旋转渐变</title>
<style> * {
margin: 0; padding: 0; /* 元素的总高度和宽度包含内边距和边框(padding 与 border) : */ box-sizing: border-box; } section {
/* 设置弹性盒模型 方便居中 */ display: flex; justify-content: center; align-items: center; /* 100% minimum height */ min-height: 100vh; background-color: #042104; } section .loader {
position: relative; width: 120px; height: 120px; } section .loader span {
position: absolute; top: 0; left: 0; width: 100%; height: 100%; /* background-color: aqua; */ transform: rotate(calc(18deg*var(--i))); animation: animateBg 10s linear infinite; } @keyframes animateBg {
0% {
/* filter滤镜 Here is to set the hue rotation */ filter: hue-rotate(0deg); } 100% {
filter: hue-rotate(180deg); } } section .loader span::before {
content: ''; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background-color: #00ff0a; box-shadow: 0 0 10px #00ff0a, 0 0 20px #00ff0a, 0 0 40px #00ff0a, 0 0 60px #00ff0a, 0 0 80px #00ff0a, 0 0 100px #00ff0a; animation: animate 2s linear infinite; animation-delay: calc(0.1s*var(--i)); } @keyframes animate {
0% {
transform: scale(1) } 80%, 100% {
transform: scale(0); } } </style>
</head>
<body>
<script> window.onload = e => {
console.log(e); var body = document.getElementsByTagName('body')[0]; var section = document.createElement('section') body.appendChild(section); var div = document.createElement('div'); div.className = 'loader'; section.appendChild(div); for (let index = 1; index <= 20; index++) {
let span = document.createElement('span'); span.style = '--i:' + index + ';'; div.appendChild(span) } } </script>
</body>
</html>
边栏推荐
猜你喜欢

OpenAtom XuperChain 开源双周报 |2022.7.25-2022.8.5

2022-08-05:以下go语言代码输出什么?A:65, string;B:A, string;C:65, int;D:报错。

2022-08-05: What does the following go code output?A: 65, string; B: A, string; C: 65, int; D: error.

Use the aggird component to implement sliding request paging to achieve the effect of infinite scrolling

Advanced Programming in UNIX Environment - Chapter 2

用C写小游戏(扫雷)

Autumn begins tomorrow, the weather is getting cooler

深度学习——怎样读取本地数据作为训练集和测试集

Test case design method - detailed explanation of scenario method

Can the code signing certificate solve the software being alerted by antivirus software?
随机推荐
[KALI] 开启ssh远程连接
I set the global mapping table prefix in yml, but the database does not recognize it
JMeter代理录制手机app
CSDN官方插件
[Popular Science] What basic knowledge do I need to learn to engage in Web3?
限制命令长度如何反弹shell
【matlab的积分,傅里叶,拉普拉斯变换,信号分析】
按钮只能点击一次
[科普文] 搞 Web3 要学习哪些基础知识?
CPU架构一览
LeetCode——345. 反转字符串中的元音字母
Process finished with exit code -1073740791 (0xC0000409)
Chapter 13 Bayesian Network Practice
Datax3.0+DataX-Web打造分布式可视化ETL系统
EsgynDB Troubleshooting - 网卡MTU导致跨网段访问数据库失败
Script for reverse generation of entity class, query and other interface xml of MySQL database
dalle2:hierarchical text-conditional image generation with clip
深度学习——以花朵识别为例,分析构造神经网络时用到的各个类构造函数(Dense、Conv2D、Flatten等)
vscode configure typescript and simple use
UNIX environment advanced programming - the first chapter