aboutsummaryrefslogtreecommitdiff
path: root/src/lib/components/slide.svelte
blob: 439d312099712a9e8f6da38c5fbfcffc79de5657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<script lang="ts">
	type Bool = boolean | null
	type String = string | null
	type Transition =
		| 'none'
		| 'fade'
		| 'slide'
		| 'convex'
		| 'concave'
		| 'zoom'
		| null

	export let animate: Bool = null
	export let animateEasing: String = null
	export let animateUnmatched: Bool = null
	export let animateId: String = null
	export let animateRestart: Bool = null
	export let background: String = null
	export let gradient: String = null
	export let image: String = null
	export let video: String = null
	export let iframe: String = null
	export let interactive: Bool = null
	export let transition: Transition = null

	delete $$restProps.class
</script>

<section
	on:in
	on:out
	data-auto-animate={animate}
	data-auto-animate-easing={animateEasing}
	data-auto-animate-unmatched={animateUnmatched}
	data-auto-animate-id={animateId}
	data-auto-animate-restart={animateRestart}
	data-background-color={background}
	data-background-gradient={gradient}
	data-background-image={image}
	data-background-video={video}
	data-background-iframe={iframe}
	data-background-interactive={interactive}
	data-transition={transition}
	class={$$props.class || ''}
	{...$$restProps}
>
	<slot />
</section>