1
0
Fork 0
mirror of synced 2024-07-08 15:56:23 +12:00

remove slide and scale transitions

This commit is contained in:
Keviin Åberg Kultalahti 2021-03-01 17:03:13 +01:00
parent 97213ec99a
commit 1bd32752a7
2 changed files with 4 additions and 3 deletions

View file

@ -25,7 +25,7 @@
] ]
const transitions = [ 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) : [] $: groups = componentDefinition?.styleable ? Object.keys(allStyles) : []

View file

@ -4,8 +4,9 @@ import { fade, blur, slide, fly } from "svelte/transition"
const transitions = new Map([ const transitions = new Map([
["fade", { tn: fade, opt: {} }], ["fade", { tn: fade, opt: {} }],
["blur", { tn: blur, opt: {} }], ["blur", { tn: blur, opt: {} }],
["slide", { tn: slide, opt: {} }], // These two seem to not result in any effect
["scale", { tn: slide, opt: {} }], // ["slide", { tn: slide, opt: {} }],
// ["scale", { tn: slide, opt: {} }],
["fly", { tn: fly, opt: { y: 80 } }], ["fly", { tn: fly, opt: { y: 80 } }],
]) ])