From 70a4fc99f4c93883db9324f9c8d16e0edd2892c9 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 30 Mar 2022 15:48:04 +0200 Subject: [PATCH] wip #5179 @0.25 --- app/Jobs/ProcessFluidbook.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/Jobs/ProcessFluidbook.php b/app/Jobs/ProcessFluidbook.php index 28598e5..b141467 100644 --- a/app/Jobs/ProcessFluidbook.php +++ b/app/Jobs/ProcessFluidbook.php @@ -150,18 +150,13 @@ class ProcessFluidbook extends Compiler if ($ee[0] == 'anim') { $base = [['type' => '', 'ease' => 'Power2.easeOut', 'duration' => 1.5, 'transformOrigin' => 'center', 'delay' => 1], []]; switch ($ee[1]) { + case 'appearfromtop': + case 'appearfrombottom': case 'fadein': $link['type'] = 14; $base[0]['type'] = 'fadeout'; $base[0]['ease'] = 'Power0.easeInOut'; break; - case 'appearfromtop': - case 'appearfrombottom': - $link['type'] = 39; - $base[0]['type'] = 'translatefrom'; - $base[0]['y'] = 100 * ($ee[1] == 'appearfromtop' ? -1 : 1); - $base[1]['type'] = 'fadein'; - break; case 'zoomout': $link['type'] = 39; $base[0]['type'] = 'zoomout'; -- 2.39.5