diff --git a/src/components/ScrollyVideo/ScrollyVideo.mdx b/src/components/ScrollyVideo/ScrollyVideo.mdx
index 9178c2d1..ba09ddf1 100644
--- a/src/components/ScrollyVideo/ScrollyVideo.mdx
+++ b/src/components/ScrollyVideo/ScrollyVideo.mdx
@@ -116,9 +116,9 @@ The `autoplay` option combines the autoplay and scrollytelling experience. If se
/>
```
-## Time-based foregrounds with ArchieML
+## Time-based text foregrounds with ArchieML
-The `ScrollyVideo` component can also be used to display foregrounds, such as headlines, blurbs, or ai2svelte components, at specific times in the video. To do so, use the `ScrollyVideoForeground` component.
+The `ScrollyVideo` component can also be used to display text as foregrounds at specific times in the video. To do so, use the `ScrollyVideoForeground` component.
[Demo](?path=/story/components-graphics-scrollyvideo--archie-ml-foregrounds)
@@ -217,15 +217,19 @@ endTime: 2 # When to stop showing the headline
```
-## Time based Foregrounds
+## Time-based component foregrounds with ArchieML
-The `ScrollyVideo` component can also be used to display different foregrounds based on the current time in the video. This is useful for creating interactive experiences where the content changes as the video progresses. To throw off some ideas, one could add `Headline`, `GraphicBlock`, `FeaturePhoto` or any other component to the foreground based on the current time in the video. This can be achieved by adding `Foreground` components, along with their **startTime** and **endTime**, as a child to the main `ScrollyVideo` component.
+The `ScrollyVideo` component can also be used to display components, such as `Headline` or ai2svelte files, as foregrounds at specific times in the video. To do so, use the `ScrollyVideoForeground` component.
-[Demo](?path=/story/components-graphics-scrollyvideo--ai-2-svelte-foregrounds)
+[Demo](?path=/story/components-graphics-scrollyvideo--component-archie-ml-foregrounds)
+
+With the graphics kit, you'll likely get your text and prop values from an ArchieML doc...
```svelte
diff --git a/src/components/ScrollyVideo/ScrollyVideo.stories.svelte b/src/components/ScrollyVideo/ScrollyVideo.stories.svelte
index 569c3507..4c23d3dc 100644
--- a/src/components/ScrollyVideo/ScrollyVideo.stories.svelte
+++ b/src/components/ScrollyVideo/ScrollyVideo.stories.svelte
@@ -194,8 +194,8 @@
diff --git a/src/components/ScrollyVideo/ScrollyVideo.svelte b/src/components/ScrollyVideo/ScrollyVideo.svelte
index 9103c7c4..4c2d571c 100644
--- a/src/components/ScrollyVideo/ScrollyVideo.svelte
+++ b/src/components/ScrollyVideo/ScrollyVideo.svelte
@@ -115,14 +115,6 @@
...embeddedProps,
};
- console.log(
- 'embedded',
- embedded,
- 'embeddedSrc:',
- embeddedSrc,
- 'restProps:',
- restProps.src
- );
$effect(() => {
if (scrollyVideoContainer) {
if (JSON.stringify(restProps) !== lastPropsString) {
diff --git a/src/components/ScrollyVideo/ScrollyVideoForeground.svelte b/src/components/ScrollyVideo/ScrollyVideoForeground.svelte
index 093c1b6c..f864a38e 100644
--- a/src/components/ScrollyVideo/ScrollyVideoForeground.svelte
+++ b/src/components/ScrollyVideo/ScrollyVideoForeground.svelte
@@ -1,11 +1,11 @@
-{#snippet ScrollForeground()}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{/snippet}
-
{#snippet ScrollVideo(height: string, VideoSrc: string)}
- {@render ScrollForeground()}
+
+
+
+
+ {#each scrollyVideoBlock.foregrounds as foreground, idx}
+ {#if foreground.foreground}
+
+
+ {#if idx === 0}
+
+ {:else if idx === 1}
+
+ {:else if idx === 2}
+
+ {:else if idx === 3}
+
+ {/if}
+
+
+ {/if}
+ {/each}
{/snippet}
diff --git a/src/components/ScrollyVideo/demo/WithTextForegrounds.svelte b/src/components/ScrollyVideo/demo/WithTextForegrounds.svelte
index 68a588ad..c7a41b0b 100644
--- a/src/components/ScrollyVideo/demo/WithTextForegrounds.svelte
+++ b/src/components/ScrollyVideo/demo/WithTextForegrounds.svelte
@@ -19,15 +19,15 @@
height: '800svh',
foregrounds: [
{
- startTime: '3',
- endTime: '7',
+ startTime: '0',
+ endTime: '5',
width: 'normal',
position: 'bottom center',
backgroundColour: 'rgba(0, 0, 0, 0.8)',
text: '#### The Alps\n\nThe Alps stretch across eight countries: France, Switzerland, Italy, Monaco, Liechtenstein, Austria, Germany, and Slovenia, covering about 1,200 kilometers (750 miles).',
},
{
- startTime: '9',
+ startTime: '7',
endTime: '12',
width: 'normal',
position: 'bottom center',
@@ -35,7 +35,7 @@
text: "Mont Blanc, standing at 4,809 meters (15,777 feet), is the highest peak in the Alps and Western Europe, though there's ongoing debate between France and Italy about exactly where the summit lies.",
},
{
- startTime: '16',
+ startTime: '14',
endTime: '20',
width: 'normal',
position: 'bottom center',
@@ -57,7 +57,7 @@
useWebCodecs={true}
showDebugInfo
>
-
@@ -68,7 +68,7 @@
publishTime={new Date(content.publishTime).toISOString()}
hedSize="bigger"
/>
-
+ -->
{#each scrollyVideoBlock.foregrounds as foreground}
{/each}