Browse Source

remove slide and scale transitions

pull/1232/head
Keviin Åberg Kultalahti 6 years ago
parent
commit
58f0c45085
  1. 2
      packages/builder/src/components/design/PropertiesPanel/DesignView.svelte
  2. 5
      packages/client/src/utils/transition.js

2
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) : []

5
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 } }],
])

Loading…
Cancel
Save