change spinner class

This commit is contained in:
pythongosssss
2024-03-24 16:23:50 +00:00
parent f072d1228b
commit 128b486480
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -1,10 +1,10 @@
.lds-ring {
.pysssss-lds-ring {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-ring div {
.pysssss-lds-ring div {
box-sizing: border-box;
display: block;
position: absolute;
@@ -16,13 +16,13 @@
animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: #fff transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
.pysssss-lds-ring div:nth-child(1) {
animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
.pysssss-lds-ring div:nth-child(2) {
animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
.pysssss-lds-ring div:nth-child(3) {
animation-delay: -0.15s;
}
@keyframes lds-ring {
+1 -1
View File
@@ -4,6 +4,6 @@ addStylesheet(import.meta.url);
export function createSpinner() {
const div = document.createElement("div");
div.innerHTML = `<div class="lds-ring"><div></div><div></div><div></div><div></div></div>`;
div.innerHTML = `<div class="pysssss-lds-ring"><div></div><div></div><div></div><div></div></div>`;
return div.firstElementChild;
}