Skip to content

Commit

Permalink
Change Submit Animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks committed Dec 7, 2024
1 parent bbbf66f commit 2438eb0
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions frontend/src/components/new/Submit.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@
writableContent.subscribe(() => {
allFieldsFilled();
});
let submit = document.getElementsByClassName("submit")[0] as HTMLElement;
setTimeout(() => {
submit.style.opacity = "1";
submit.style.transform = "translateY(0)";
}, 400);
});
let alreadyUploading = false;
Expand Down Expand Up @@ -156,8 +149,7 @@
text-decoration: none;
border: 1px solid #c9c9c9;
opacity: 0;
transform: translateY(30%);
animation: fadeIn 0.5s forwards;
:global(.dark-mode) & {
background-color: #1a1a1a;
Expand Down Expand Up @@ -208,4 +200,14 @@
transform: scale(1);
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
</style>

0 comments on commit 2438eb0

Please sign in to comment.