From 1bd32752a751b258c6b02d12222ad86b27f1f7f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Mon, 1 Mar 2021 17:03:13 +0100 Subject: [PATCH] remove slide and scale transitions --- .../src/components/design/PropertiesPanel/DesignView.svelte | 2 +- packages/client/src/utils/transition.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/components/design/PropertiesPanel/DesignView.svelte b/packages/builder/src/components/design/PropertiesPanel/DesignView.svelte index d40fe7c8e7..960d960fc6 100644 --- a/packages/builder/src/components/design/PropertiesPanel/DesignView.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/DesignView.svelte @@ -25,7 +25,7 @@ ] const transitions = [ - 'fade', 'blur', 'slide', 'fly', 'scale' + 'fade', 'blur', 'fly' // slide and scale are hidden because they do not seem to result in any effect ] $: groups = componentDefinition?.styleable ? Object.keys(allStyles) : [] diff --git a/packages/client/src/utils/transition.js b/packages/client/src/utils/transition.js index db2fa6ad5f..33d7467cc1 100644 --- a/packages/client/src/utils/transition.js +++ b/packages/client/src/utils/transition.js @@ -4,8 +4,9 @@ import { fade, blur, slide, fly } from "svelte/transition" const transitions = new Map([ ["fade", { tn: fade, opt: {} }], ["blur", { tn: blur, opt: {} }], - ["slide", { tn: slide, opt: {} }], - ["scale", { tn: slide, opt: {} }], + // These two seem to not result in any effect + // ["slide", { tn: slide, opt: {} }], + // ["scale", { tn: slide, opt: {} }], ["fly", { tn: fly, opt: { y: 80 } }], ])