Commit 0afdbe33 authored by Steven's avatar Steven

chore: remove animation of spoiler

parent 6b14d875
......@@ -10,7 +10,7 @@ const Spoiler: React.FC<Props> = ({ content }: Props) => {
return (
<span
className={classNames("inline cursor-pointer select-none", isRevealed ? "" : "animate-pulse bg-gray-200 dark:bg-zinc-700")}
className={classNames("inline cursor-pointer select-none", isRevealed ? "" : "bg-gray-200 dark:bg-zinc-700")}
onClick={() => setIsRevealed(!isRevealed)}
>
<span className={classNames(isRevealed ? "opacity-100" : "opacity-0")}>{content}</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment