misc: tweak css animations (#583)

* impr: use css animations instead of svelte for comments

* impr: change post load animation
This commit is contained in:
Xylight authored and GitHub committed 2025-06-16 12:15:27 -07:00
1 parent 0de8758996
commit 42d755b46b
3 files changed
+38 -17

No files matched your search

@@ -198,10 +198,11 @@
{#snippet item(row)}
<li
data-index={row}
style={row < 7 ? `--anim-delay: ${row * 100}ms` : ''}
class="relative post-container {row < 7
? 'pop-in opacity-0'
: ''} px-4 sm:px-6"
style={row < 7 ? `--anim-delay: ${row * 50}ms` : ''}
class={[
'relative post-container px-4 sm:px-6',
row < 7 && 'pop-in opacity-0',
]}
>
<Post
bind:post={posts[row]}
@@ -288,7 +289,7 @@
}
.pop-in {
animation: popIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards
animation: popIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards
var(--anim-delay);
}
</style>