This commit is contained in:
hamid zarghami
2025-01-26 09:07:21 +03:30
parent c349d1ce55
commit 49e09fa9ab
9 changed files with 268 additions and 28 deletions
+51
View File
@@ -131,3 +131,54 @@ tbody tr {
direction: rtl;
font-family: "irancell" !important;
}
/* loader */
.loader {
width: 22px;
height: 22px;
border-radius: 50%;
position: relative;
animation: rotate 1s linear infinite;
}
.loader::before,
.loader::after {
content: "";
box-sizing: border-box;
position: absolute;
inset: 0px;
border-radius: 50%;
border: 2px solid #0047ff;
animation: prixClipFix 2s linear infinite;
}
.loader::after {
border-color: #000;
animation: prixClipFix 2s linear infinite, rotate 0.5s linear infinite reverse;
inset: 6px;
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes prixClipFix {
0% {
clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
}
25% {
clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
}
50% {
clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
}
75% {
clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
}
100% {
clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
}
}