Cleaner animation start

This commit is contained in:
momo5502
2025-09-26 10:06:12 +02:00
parent 22b579d186
commit 78b35b064b

View File

@@ -20,12 +20,13 @@ function EmulateFile() {
function Spinner() {
const loading = Loader.useLoader();
if (!loading) {
return <></>;
}
return (
<div className="fixed z-9999 top-0 left-0 right-0 h-[2px] animated-gradient"></div>
<div
className={
"fixed z-9999 top-0 left-0 right-0 h-[2px] pointer-events-none select-none transition-opacity duration-1000 animated-gradient " +
(loading ? "opacity-100" : "opacity-0")
}
></div>
);
}