diff --git a/src/components/molecules/ProcessStep.svelte b/src/components/molecules/ProcessStep.svelte index 27bc1a0..19af9d3 100644 --- a/src/components/molecules/ProcessStep.svelte +++ b/src/components/molecules/ProcessStep.svelte @@ -13,19 +13,10 @@ export let text: string export let image: any = undefined export let video: any = undefined - export let visible: boolean = false - - let videoEl: HTMLVideoElement const imageRatio = image ? image.width / image.height : undefined - - // Toggle video playback if step is visible - $: if (videoEl) { - visible ? videoEl.play() : videoEl.pause() - } -{#if visible}
- {:else if video} -