1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 10:22:46 +00:00

feat: add loading animate

This commit is contained in:
liuhongbo
2024-04-01 11:00:17 +08:00
committed by 杨顺强
parent 728de87ac6
commit 972bbf00fa
3 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import React from 'react';
import './style.css';
class CodeMirrorLoading extends React.Component {
render() {
return (
<div className="empty-loading-page">
<div className="lds-ripple page-centered"><div></div><div></div></div>
</div>
);
}
}
export default CodeMirrorLoading;

View File

@@ -0,0 +1,49 @@
.empty-loading-page {
position: fixed;
height: 100%;
width: 100%;
}
.page-centered {
position: fixed;
top: 50%;
left: 50%;
/* bring your own prefixes */
transform: translate(-50%, -50%);
}
.lds-ripple {
display: inline-block;
position: relative;
width: 64px;
height: 64px;
}
.lds-ripple div {
position: absolute;
border: 4px solid #eb8205;
opacity: 1;
border-radius: 50%;
animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
animation-delay: -0.5s;
}
@keyframes lds-ripple {
0% {
top: 28px;
left: 28px;
width: 0;
height: 0;
opacity: 1;
}
100% {
top: -1px;
left: -1px;
width: 58px;
height: 58px;
opacity: 0;
}
}