-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathSlide.svelte
38 lines (36 loc) · 972 Bytes
/
Slide.svelte
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
<script>
// Color Backgrounds
export let bgColor;
// Gradient Backgrounds
export let bgGradient;
// Image Backgrounds
export let bgImage;
export let bgSize;
export let bgPosition;
export let bgRepeat;
export let bgOpacity;
// Video Backgrounds
export let bgVideo;
export let bgVideoLoop;
export let bgVideoMuted;
// Iframe Backgrounds
export let bgIframe;
export let bgInteractive;
// Transitions
</script>
<section
data-background-color={bgColor}
data-background-gradient={bgGradient}
data-background-image={bgImage}
data-background-size={bgSize}
data-background-position={bgPosition}
data-background-repeat={bgRepeat}
data-background-opacity={bgOpacity}
data-background-video={bgVideo}
data-background-video-loop={bgVideoLoop}
data-background-video-muted={bgVideoMuted}
data-background-iframe={bgIframe}
data-background-interactive={bgInteractive}
>
<slot/>
</section>