web/UpdateNotification: fix initial transition (animation)

This commit is contained in:
wukko 2025-03-27 21:20:00 +06:00
parent 8ffe9e29d6
commit 071008726e
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -1,8 +1,15 @@
<script lang="ts">
import { onMount } from "svelte";
import { t } from "$lib/i18n/translations";
import IconComet from "@tabler/icons-svelte/IconComet.svelte";
let dismissed = false;
let dismissed = true;
onMount(() => {
setTimeout(() => {
dismissed = false;
}, 200)
});
</script>
<div id="update-notification" role="alert" aria-atomic="true">
@ -98,6 +105,7 @@
.update-button {
transform: translateY(300px);
margin-right: var(--padding);
transition: transform 0.55s cubic-bezier(0.53, 0.05, 0.23, 1.15);
}
}
</style>