generated from rajasegar/svelte-slides
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSlide.svelte
51 lines (46 loc) · 1.18 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
<script>
// Transition
export let transition = null;
// Color Backgrounds
export let bgColor = null;
// Gradient Backgrounds
export let bgGradient = null;
// Image Backgrounds
export let bgImage = null;
export let bgSize = null;
export let bgPosition = null;
export let bgRepeat = null;
export let bgOpacity = null;
// Video Backgrounds
export let bgVideo = null;
export let bgVideoLoop = null;
export let bgVideoMuted = null;
// Iframe Backgrounds
export let bgIframe = null;
export let bgInteractive = null;
let className = '';
export { className as class };
</script>
<section
class={className}
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}
data-transition={transition}
>
<slot />
</section>
<style>
section {
padding: 1rem;
}
</style>