当前位置:网站首页>Rotating hourglass in loading
Rotating hourglass in loading
2022-06-13 12:19:00 【Nebula】
<!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>sandglass</title>
<style> @keyframes sandglass {
0% {
transform: rotate(0deg); } 25%, 50% {
transform: rotate(180deg); } 75%, 100% {
transform: rotate(360deg); } } @keyframes bottom-sand {
0% {
transform: translateY(-30%); } 50% {
transform: translateY(0%); } 100% {
transform: translateY(30%); } } @keyframes top-sand {
0% {
transform: translateY(0%); } 50% {
transform: translateY(-30%); } 51% {
transform: translateY(-30%) translateX(100%); } 52% {
transform: translateY(30%) translateX(100%); } 53% {
transform: translateY(30%); } 100% {
transform: translateY(0%); } } @keyframes point {
0% {
opacity: 1; } 50% {
opacity: .2; } 100% {
opacity: 1; } } .sandglass {
transform-origin: 0 0; animation: sandglass 5s cubic-bezier(0.075, 0.82, 0.165, 1) infinite; } .bottom-sand {
transform-origin: 0 0; animation: bottom-sand 5s ease-in-out infinite; } .top-sand {
transform-origin: 0 0; animation: top-sand 5s ease-in-out infinite; } .label {
padding: 3rem; padding-top: 0; } .point{
animation-name: point; animation-duration: 2s; animation-timing-function: linear; animation-iteration-count: infinite; } </style>
</head>
<body>
<div style="width:800px;margin:auto;text-align:center;background:#222;">
<svg style="height:300px;" viewBox="-75 -75 150 150">
<defs>
<clipPath id="top">
<path d="M 0,2.4882812 -28.052734,30.541016 V 46.480469 H 28.052734 V 30.541016 Z" />
</clipPath>
<clipPath id="top-sand">
<path class="top-sand" d="M 0,2.4882812 -28.052734,30.541016 V 46.480469 H 28.052734 V 30.541016 Z" />
</clipPath>
<clipPath id="bottom">
<path d="m -28.052734,-46.480469 v 15.939453 L 0,-2.4882812 28.052734,-30.541016 v -15.939453 z" />
</clipPath>
<clipPath id="bottom-sand">
<path class="bottom-sand" d="m -28.052734,-46.480469 v 15.939453 L 0,-2.4882812 28.052734,-30.541016 v -15.939453 z" />
</clipPath>
</defs>
<g class="sandglass">
<path fill="#fff" d="m -29.8125,-50 a 1.75945,1.75945 0 0 0 -1.759766,1.759766 V -29.8125 a 1.7596259,1.7596259 0 0 0 0.515625,1.244141 L -2.488281,1.1402179e-8 -31.056641,28.568359 A 1.7596259,1.7596259 0 0 0 -31.572266,29.8125 V 48.240234 A 1.7596259,1.7596259 0 0 0 -29.8125,50 h 59.625 a 1.7596259,1.7596259 0 0 0 1.759766,-1.759766 V 29.8125 A 1.7596259,1.7596259 0 0 0 31.056641,28.568359 L 2.488281,1.1402179e-8 31.056641,-28.568359 A 1.7596259,1.7596259 0 0 0 31.572266,-29.8125 V -48.240234 A 1.7596259,1.7596259 0 0 0 29.8125,-50 Z m 1.759766,3.519531 h 56.105468 v 15.939453 L 1.1366282e-8,-2.488281 -28.052734,-30.541016 Z M 1.1366282e-8,2.488281 28.052734,30.541016 V 46.480469 H -28.052734 V 30.541016 Z" />
<g clip-path="url(#bottom)">
<g clip-path="url(#bottom-sand)">
<rect fill="#fff" x="-75" y="-75" width="150" height="150" />
</g>
</g>
<g clip-path="url(#top)">
<g clip-path="url(#top-sand)">
<rect fill="#fff" x="-75" y="-75" width="150" height="150" />
</g>
</g>
</g>
</svg>
<h2 class="label">loading
<span class="point" style="animation-delay:.25s;">.</span>
<span class="point" style="animation-delay:.5s;">.</span>
<span class="point" style="animation-delay:.75s;">.</span>
</h2>
</div>
</body>
</html>
边栏推荐
- Opencv learning notes (II): reading MNIST datasets
- The industry-leading interface component package devaxpress officially released v21.2.8 in June
- 如何基于Swift开源技术构建云存储集群
- web开发视频教程,web开发教学
- 内部寄存器类型
- Machine learning (III) - LDA (linear discriminant analysis) theory and code explanation
- Machine learning (II) - logical regression theory and code explanation
- Pulsar consumer
- 基于三维GIS技术的行业发展及研究现状
- 002、torchserve调用官方库模型
猜你喜欢
随机推荐
M1 experience win11
业务上云之迁移策略-6R
Selenium3 automatic test practice (5)
如何基于Swift开源技术构建云存储集群
婴儿EEG数据的多元模式分析(MVPA):一个实用教程
SaaS应用架构的最佳实践
一文说清楚SaaS(软件即服务)
【MySQL锁表处理】
Interview shock 56: what is the difference between clustered index and non clustered index?
LVGL库入门教程01-移植到STM32(触摸屏)
基于STM32F103——AS608指纹模块+串口打印
The most complete network, including interview questions + Answers
Camunda定时器事件示例Demo(Timer Events)
Pulsar 消费者
The answer to the subject of "Regulations" of the second construction company in 2022 has been provided. Please keep it
构建一个安全的云平台
我想转行程序员,上个编程培训班,能找到工作吗?我可以自学吗?
2022年二建《法规》科目答案已出,请收好
Lucene从入门到实战
『忘了再学』Shell基础 — 30、sed命令的使用