Skip to content

Commit b04a367

Browse files
authored
Add back animation (#3251)
1 parent 00c6418 commit b04a367

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/lib/components/workflow/workflow-count-refresh.svelte

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
}
1313
1414
let { count }: Props = $props();
15+
16+
const duration = 300;
1517
</script>
1618

1719
<Button
@@ -28,7 +30,11 @@
2830
)}
2931
>
3032
{#key count}
31-
<span class="col-start-1 row-start-1">
33+
<span
34+
class="col-start-1 row-start-1"
35+
in:fly={{ y: 8, duration }}
36+
out:fly={{ y: -8, duration }}
37+
>
3238
{#if count > 0}
3339
+{count.toLocaleString()}
3440
{:else if count < 0}

0 commit comments

Comments
 (0)