From f05a472585b2506da21aed71f0252b2d4c04a221 Mon Sep 17 00:00:00 2001
From: Indrajith K L
Date: Mon, 5 Feb 2024 04:15:02 +0530
Subject: React Slides

* Adds useState
* State
* useEffect
* Side Effects
---
 src/lib/components/step.svelte | 53 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 src/lib/components/step.svelte

(limited to 'src/lib/components/step.svelte')

diff --git a/src/lib/components/step.svelte b/src/lib/components/step.svelte
new file mode 100644
index 0000000..13c2f7c
--- /dev/null
+++ b/src/lib/components/step.svelte
@@ -0,0 +1,53 @@
+<script lang="ts">
+	export let order: string | null = null
+	export let fadeIn = false
+	export let fadeOut = false
+	export let fadeUp = false
+	export let fadeDown = false
+	export let fadeLeft = false
+	export let fadeRight = false
+	export let fadeInThenOut = false
+	export let currentVisible = false
+	export let fadeInThenSemiOut = false
+	export let semiFadeOut = false
+	export let highlightRed = false
+	export let highlightGreen = false
+	export let highlightBlue = false
+	export let highlightCurrentRed = false
+	export let highlightCurrentGreen = false
+	export let highlightCurrentBlue = false
+	export let grow = false
+	export let shrink = false
+	export let strike = false
+
+	delete $$restProps.class
+</script>
+
+<p
+	on:in
+	on:out
+	class:fade-in={fadeIn}
+	class:fade-out={fadeOut}
+	class:fade-up={fadeUp}
+	class:fade-down={fadeDown}
+	class:fade-left={fadeLeft}
+	class:fade-right={fadeRight}
+	class:fade-in-then-out={fadeInThenOut}
+	class:current-visible={currentVisible}
+	class:fade-in-then-semi-out={fadeInThenSemiOut}
+	class:semi-fade-out={semiFadeOut}
+	class:highlight-red={highlightRed}
+	class:highlight-green={highlightGreen}
+	class:highlight-blue={highlightBlue}
+	class:highlight-current-red={highlightCurrentRed}
+	class:highlight-current-green={highlightCurrentGreen}
+	class:highlight-current-blue={highlightCurrentBlue}
+	class:grow
+	class:shrink
+	class:strike
+	class="fragment {$$props.class || ''}"
+	data-fragment-index={order}
+	{...$$restProps}
+>
+	<slot />
+</p>
-- 
cgit v1.2.3

