From 33d2fd887f6dd7ebb62e1e94a30824492899950d Mon Sep 17 00:00:00 2001 From: Qing Date: Sat, 8 Oct 2022 22:03:46 +0800 Subject: [PATCH] optimize show original transition --- lama_cleaner/app/src/components/Editor/Editor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lama_cleaner/app/src/components/Editor/Editor.tsx b/lama_cleaner/app/src/components/Editor/Editor.tsx index 780e84a..47ae0f5 100644 --- a/lama_cleaner/app/src/components/Editor/Editor.tsx +++ b/lama_cleaner/app/src/components/Editor/Editor.tsx @@ -972,7 +972,7 @@ export default function Editor() { style={{ cursor: getCursor(), clipPath: `inset(0 ${sliderPos}% 0 0)`, - transition: 'clip-path 350ms ease-in-out', + transition: 'clip-path 300ms cubic-bezier(0.4, 0, 0.2, 1)', }} onContextMenu={e => { e.preventDefault() @@ -1143,7 +1143,7 @@ export default function Editor() { setSliderPos(0) window.setTimeout(() => { setShowOriginal(false) - }, 350) + }, 300) }} disabled={renders.length === 0} />