The next-generation file converter. Open source, fully local* and free forever.
<script lang="ts">
import { duration, fade } from "#lib/util/animation";
import { dropping, effects } from "#lib/store/index.svelte";
import { quintOut } from "svelte/easing";
import clsx from "clsx";
</script>
{#if $dropping}
<div
class={clsx(
"pointer-events-none fixed z-[100] h-screen w-screen opacity-40 blur-2xl dynadark:opacity-20",
$effects ? "dragoverlay" : "bg-accent-blue",
)}
class:_dragover={dropping && $effects}
transition:fade={{
duration,
easing: quintOut,
}}
></div>
{/if}
<style lang="postcss">
.dragoverlay {
animation: dragoverlay-animation 3s infinite linear;
}
@keyframes dragoverlay-animation {
0% {
@apply bg-accent-pink;
}
25% {
@apply bg-accent-blue;
}
50% {
@apply bg-accent-purple;
}
75% {
@apply bg-accent-red;
}
100% {
@apply bg-accent-pink;
}
}
</style>