From 42d755b46bfed7bd345f31f7a5440a4c65426002 Mon Sep 17 00:00:00 2001 From: Xylight <80978739+Xyphyn@users.noreply.github.com> Date: Mon, 16 Jun 2025 12:15:27 -0700 Subject: [PATCH] misc: tweak css animations (#583) * impr: use css animations instead of svelte for comments * impr: change post load animation --- .../components/lemmy/comment/Comment.svelte | 38 +++++++++++++++---- .../components/lemmy/comment/Comments.svelte | 6 +-- .../lemmy/post/feed/VirtualFeed.svelte | 11 +++--- 3 files changed, 38 insertions(+), 17 deletions(-) diff --git a/src/lib/components/lemmy/comment/Comment.svelte b/src/lib/components/lemmy/comment/Comment.svelte index c68da992..9f43f835 100644 --- a/src/lib/components/lemmy/comment/Comment.svelte +++ b/src/lib/components/lemmy/comment/Comment.svelte @@ -10,9 +10,7 @@ import { errorMessage } from '$lib/lemmy/error' import { Button, Modal, toast } from 'mono-svelte' import { Bookmark, Icon, Microphone, Pencil, Trash } from 'svelte-hero-icons' - import { expoOut } from 'svelte/easing' import type { ClassValue } from 'svelte/elements' - import { slide } from 'svelte/transition' import ShieldIcon from '../moderation/ShieldIcon.svelte' import CommentForm from './CommentForm.svelte' import type { CommentNodeI } from './comments.svelte' @@ -74,6 +72,16 @@ editingLoad = false } + + $effect(() => { + if (!open) { + // const + } + }) + + setTimeout(() => { + open = true + }, 500) {#if editing || replying} @@ -202,11 +210,8 @@ {/if} - {#if open} -