From 81269d6e9f656642a08a06236f8662f58ea25215 Mon Sep 17 00:00:00 2001 From: pipisebastian Date: Thu, 21 Nov 2024 00:58:24 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20block=20=ED=95=98=EC=9D=B4=EB=9D=BC?= =?UTF-8?q?=EC=9D=B4=ED=8A=B8=20=EC=95=A0=EB=8B=88=EB=A9=94=EC=9D=B4?= =?UTF-8?q?=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #159 --- .../components/block/Block.animation.ts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 client/src/features/editor/components/block/Block.animation.ts diff --git a/client/src/features/editor/components/block/Block.animation.ts b/client/src/features/editor/components/block/Block.animation.ts new file mode 100644 index 00000000..1c7ee314 --- /dev/null +++ b/client/src/features/editor/components/block/Block.animation.ts @@ -0,0 +1,22 @@ +export const highlight = { + initial: { + background: `linear-gradient(to right, + #BFBFFF95 0%, + #BFBFFF95 0%, + transparent 0%, + transparent 100% + )`, + }, + animate: { + background: `linear-gradient(to right, + #BFBFFF95 0%, + #BFBFFF95 100%, + transparent 100%, + transparent 100% + )`, + transition: { + duration: 1, + ease: "linear", + }, + }, +};