1
0
Fork 1
mirror of https://example.com synced 2024-11-24 06:26:39 +09:00

fix again

This commit is contained in:
ThatOneCalculator 2022-07-27 11:52:10 -07:00
parent 6e7efb8c43
commit f277aaf677

View file

@ -34,26 +34,6 @@ const props = withDefaults(defineProps<{
<style lang="scss" module>
/* Credit to https://codepen.io/supah/pen/BjYLdW */
@keyframes rotate {
100% {
transform: rotate(360deg);
}
}
@keyframes dash {
0% {
stroke-dasharray: 1, 150;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 90, 150;
stroke-dashoffset: -35;
}
100% {
stroke-dasharray: 90, 150;
stroke-dashoffset: -124;
}
}
.root {
padding: 32px;
@ -92,9 +72,31 @@ const props = withDefaults(defineProps<{
z-index: 999;
width: var(--size);
height: var(--size);
stroke-linecap: round;
stroke-linejoin: round;
animation: rotate 2s linear infinite;
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes dash {
0% {
stroke-dasharray: 1, 150;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 90, 150;
stroke-dashoffset: -35;
}
100% {
stroke-dasharray: 90, 150;
stroke-dashoffset: -124;
}
}
&.path {
stroke: var(--accent);
stroke-linecap: round;