primevue-mirror/components/lib/themes/primeone/base/progressspinner/index.js

75 lines
1.5 KiB
JavaScript
Raw Normal View History

export default {
css: ({ dt }) => `
2024-04-08 11:31:27 +00:00
.p-progressspinner {
position: relative;
margin: 0 auto;
width: 100px;
height: 100px;
display: inline-block;
}
2024-04-08 11:31:27 +00:00
.p-progressspinner::before {
content: "";
display: block;
padding-top: 100%;
}
2024-04-08 11:31:27 +00:00
.p-progressspinner-spin {
height: 100%;
transform-origin: center center;
width: 100%;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
2024-04-08 11:31:27 +00:00
animation: p-progressspinner-rotate 2s linear infinite;
}
2024-04-08 11:31:27 +00:00
.p-progressspinner-circle {
stroke-dasharray: 89, 200;
stroke-dashoffset: 0;
2024-03-12 10:07:36 +00:00
stroke: ${dt('progressspinner.color-1')};
2024-04-08 11:31:27 +00:00
animation: p-progressspinner-dash 1.5s ease-in-out infinite, p-progressspinner-color 6s ease-in-out infinite;
stroke-linecap: round;
}
2024-04-08 11:31:27 +00:00
@keyframes p-progressspinner-rotate {
100% {
transform: rotate(360deg);
}
}
2024-04-08 11:31:27 +00:00
@keyframes p-progressspinner-dash {
0% {
stroke-dasharray: 1, 200;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 89, 200;
stroke-dashoffset: -35px;
}
100% {
stroke-dasharray: 89, 200;
stroke-dashoffset: -124px;
}
}
2024-04-08 11:31:27 +00:00
@keyframes p-progressspinner-color {
100%,
0% {
2024-03-12 10:07:36 +00:00
stroke: ${dt('progressspinner.color-1')};
}
40% {
2024-03-12 10:07:36 +00:00
stroke: ${dt('progressspinner.color-2')};
}
66% {
2024-03-12 10:07:36 +00:00
stroke: ${dt('progressspinner.color-3')};
}
80%,
90% {
2024-03-12 10:07:36 +00:00
stroke: ${dt('progressspinner.color-4')};
}
}
`
};