diff --git a/src/components/SvelteScroller/Background.svelte b/src/components/SvelteScroller/Background.svelte
deleted file mode 100644
index 337a3c15..00000000
--- a/src/components/SvelteScroller/Background.svelte
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-{#each steps as step, i}
-
-
- {#if preload === 0 || (i >= (stackBackground ? 0 : index - preload) && i <= index + preload)}
-
index : i !== index}
- >
-
-
- {/if}
-{/each}
-
-
diff --git a/src/components/SvelteScroller/Embedded/Background.svelte b/src/components/SvelteScroller/Embedded/Background.svelte
deleted file mode 100644
index b7bc244d..00000000
--- a/src/components/SvelteScroller/Embedded/Background.svelte
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/components/SvelteScroller/Embedded/Foreground.svelte b/src/components/SvelteScroller/Embedded/Foreground.svelte
deleted file mode 100644
index a5e5c601..00000000
--- a/src/components/SvelteScroller/Embedded/Foreground.svelte
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-{#if step.foreground === '' || !step.foreground}
-
-
-
- {#if typeof step.altText === 'string'}
-
-
-
- {/if}
-{:else if typeof step.foreground === 'string'}
-
-
-
-
-
- {#if typeof step.altText === 'string'}
-
-
-
- {/if}
-
-{:else}
-
-
-
-{/if}
-
-
diff --git a/src/components/SvelteScroller/Embedded/index.svelte b/src/components/SvelteScroller/Embedded/index.svelte
deleted file mode 100644
index 11484017..00000000
--- a/src/components/SvelteScroller/Embedded/index.svelte
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-{#each steps as step, index}
-
- {#if embeddedLayout === 'bf'}
-
-
-
- {:else}
-
-
- {/if}
-{/each}
diff --git a/src/components/SvelteScroller/Foreground.svelte b/src/components/SvelteScroller/Foreground.svelte
deleted file mode 100644
index f0f26f90..00000000
--- a/src/components/SvelteScroller/Foreground.svelte
+++ /dev/null
@@ -1,64 +0,0 @@
-
-
-{#each steps as step, i}
-
- {#if step.foreground === '' || !step.foreground}
-
-
- {#if typeof step.altText === 'string'}
-
-
-
- {/if}
- {:else}
-
- {#if typeof step.foreground === 'string'}
-
- {:else}
-
- {/if}
-
- {#if typeof step.altText === 'string'}
-
-
-
- {/if}
- {/if}
-
-{/each}
-
-
diff --git a/src/components/SvelteScroller/ScrollerBase/index.svelte b/src/components/SvelteScroller/ScrollerBase/index.svelte
deleted file mode 100644
index 807f05ff..00000000
--- a/src/components/SvelteScroller/ScrollerBase/index.svelte
+++ /dev/null
@@ -1,270 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- {@render backgroundSnippet()}
-
-
-
-
- {@render foregroundSnippet()}
-
-
-
-
diff --git a/src/components/SvelteScroller/SvelteScroller.stories.svelte b/src/components/SvelteScroller/SvelteScroller.stories.svelte
index a0f661b5..76f1f4a3 100644
--- a/src/components/SvelteScroller/SvelteScroller.stories.svelte
+++ b/src/components/SvelteScroller/SvelteScroller.stories.svelte
@@ -94,36 +94,29 @@
} as const;
-
+
+
+ {#snippet backgroundSnippet(index)}
+
+
+ This is the background content. It will stay fixed in place while the
+ foreground scrolls over the top.
+
+
Section {index + 1} is currently active.
+
+ {/snippet}
+ {#snippet foregroundSnippet(index)}
+ Index {index}: This is the first section.
+ Index {index}: This is the second section.
+ Index {index}: This is the third section.
+ {/snippet}
+
+
+
+
-
-
-
@@ -174,4 +142,18 @@
altText: step.altText,
}))}
/>
-
+ -->
+
diff --git a/src/components/SvelteScroller/SvelteScroller.svelte b/src/components/SvelteScroller/SvelteScroller.svelte
index 777cef59..55b6f118 100644
--- a/src/components/SvelteScroller/SvelteScroller.svelte
+++ b/src/components/SvelteScroller/SvelteScroller.svelte
@@ -1,189 +1,270 @@
-
-
+
+
-{#if !embedded}
-
-
- {#snippet backgroundSnippet()}
-
- {/snippet}
- {#snippet foregroundSnippet()}
-
-
-
- {/snippet}
-
-
-{:else}
-
-
-
-{/if}
+
+
+
+
+
+ {@render backgroundSnippet(index)}
+
+
+
+
+ {@render foregroundSnippet(index)}
+
+