mirror of https://github.com/VERT-sh/VERT.git
feat: pretty dragover animation
This commit is contained in:
parent
5b07832267
commit
55dd9c0eb7
|
@ -168,7 +168,8 @@
|
||||||
>
|
>
|
||||||
{#if dropping}
|
{#if dropping}
|
||||||
<div
|
<div
|
||||||
class="fixed w-screen h-screen bg-accent-blue opacity-40 dynadark:opacity-20 z-[100] pointer-events-none"
|
class="dragoverlay fixed w-screen h-screen opacity-50 dynadark:opacity-20 z-[100] pointer-events-none blur-2xl"
|
||||||
|
class:_dragover={dropping}
|
||||||
transition:fade={{
|
transition:fade={{
|
||||||
duration,
|
duration,
|
||||||
easing: quintOut,
|
easing: quintOut,
|
||||||
|
@ -329,3 +330,31 @@
|
||||||
style="background: var(--bg-gradient-pink);"
|
style="background: var(--bg-gradient-pink);"
|
||||||
></div>
|
></div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.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>
|
||||||
|
|
Loading…
Reference in New Issue