From 253dfe14b3717f8c46071a8fbcdfd3cf56001600 Mon Sep 17 00:00:00 2001 From: hufeixiong Date: Fri, 28 Jan 2022 18:05:29 +0800 Subject: [PATCH 1/3] feat: animate patch1 --- .../plugin/formComponents/animateControl.tsx | 10 +- .../dooringx-lib/src/components/blocks.tsx | 75 ++++--- .../src/components/timeLine/timeline.tsx | 190 +++++++++--------- .../src/components/timeLine/timelineItem.tsx | 2 + packages/dooringx-lib/src/config/index.tsx | 1 + .../dooringx-lib/src/core/utils/animate.ts | 28 +++ 6 files changed, 172 insertions(+), 134 deletions(-) create mode 100644 packages/dooringx-lib/src/core/utils/animate.ts diff --git a/packages/dooringx-example/src/plugin/formComponents/animateControl.tsx b/packages/dooringx-example/src/plugin/formComponents/animateControl.tsx index aa7be83..617b5e6 100644 --- a/packages/dooringx-example/src/plugin/formComponents/animateControl.tsx +++ b/packages/dooringx-example/src/plugin/formComponents/animateControl.tsx @@ -118,7 +118,7 @@ const repeat = ['1', '2', '3', '4', '5', 'infinite']; const timeFunction: Record = { 平滑: 'linear', - 缓入: 'ease in', + 缓入: 'ease-in', }; let lastAnimate: AnimateItem[] = []; @@ -302,12 +302,13 @@ function AnimateControl(props: AnimateControlProps) { {animate.length > 0 && (