fix(frontend): Update skeleton animation timings (#730)

This commit is contained in:
Ádám Kovács
2022-10-13 16:09:40 +02:00
committed by GitHub
parent 2c1cd7eea8
commit 2e21fb43d5
3 changed files with 3 additions and 4 deletions

View File

@@ -6,13 +6,12 @@
export let layout: SkeletonLayout
export let loading = true
export let overlay = false
export let delay = 200
</script>
{#if loading}
<div class="relative flex justify-center">
<div
in:fade={{ duration: 1000, delay }}
in:fade={{ duration: 1000 }}
class="flex grow flex-col overflow-hidden {overlay
? 'absolute w-full h-full z-[1000]'
: ''} {$$props.class}"

View File

@@ -5,6 +5,6 @@
</script>
<div
class="animate-skeleton"
class="animate-skeleton [animation-delay:1000ms]"
style="height: {element.h * HEIGHT_UNIT}px; width: {element.w}%; min-width: {element.minW}px;"
/>

View File

@@ -286,7 +286,7 @@ const config = {
},
'.animate-skeleton': {
animation: theme('animation.pulse'),
backgroundColor: theme('colors.blue.200'),
backgroundColor: theme('colors.blue.100'),
borderRadius: theme('borderRadius.DEFAULT'),
},
'.text-blue-gradient': {