import{j as e}from"./index-bIIEL2MP.js";import{useMDXComponents as t}from"./index-CO-0pc0F.js";import{M as i}from"./index-Z-6k0Xrj.js";import{S as s}from"./ScrollerVideo.stories-KF-3eCwU.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./iframe-CzjIX-qr.js";import"./index-aQYXhgXp.js";import"./index-DrFu-skq.js";import"./props-b4vEeO_8.js";import"./runtime-C3rQLW--.js";import"./svelte-component-C8Ginrj8.js";import"./window-DXjFTZv5.js";import"./create-runtime-stories-7AWWVphH.js";import"./snippet-C5kbqVpq.js";import"./get-C3XmtPLd.js";import"./index-client-BAw8T8-V.js";import"./attributes-Cg6aLqN3.js";import"./style-DvJ3IcV1.js";import"./size-DMdj3-I9.js";import"./this-CrUBQEQ_.js";import"./tweened-4Ja_XIbT.js";import"./ScrollerBase-DJMKplMV.js";import"./each-CVpBMMjG.js";import"./index-CCfEE_8A.js";import"./Block-D3Ui8rd-.js";import"./Markdown-DUxFwijc.js";import"./Headline-C-tkYFZ6.js";import"./Byline-BhU2Zjcl.js";import"./index-CX1x869l.js";import"./journalize-K6hK94UL.js";import"./BodyText-CXnxLnBi.js";function r(n){const o={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",strong:"strong",...t(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{of:s}),` `,e.jsx(o.h1,{id:"scrollervideo",children:"ScrollerVideo"}),` `,e.jsxs(o.p,{children:["The ",e.jsx(o.code,{children:"ScrollerVideo"})," component creates interactive video experiences that respond to user scrolling. It is built on top of ",e.jsx(o.a,{href:"https://scrollyvideo.js.org/",rel:"nofollow",children:"ScrollyVideo.js"})," and is designed to work seamlessly with Svelte."]}),` `,e.jsx(o.h2,{id:"basic-demo",children:"Basic demo"}),` `,e.jsxs(o.p,{children:["To use the ",e.jsx(o.code,{children:"ScrollerVideo"})," component, import it and provide the video source. The scroll height defaults to ",e.jsx(o.code,{children:"200lvh"}),", but you can adjust this to any valid CSS height value such as ",e.jsx(o.code,{children:"1200px"})," or ",e.jsx(o.code,{children:"200lvh"})," with the ",e.jsx(o.code,{children:"height"})," prop."]}),` `,e.jsxs(o.blockquote,{children:[` `,e.jsxs(o.p,{children:["💡TIP: Use ",e.jsx(o.code,{children:"lvh"})," or ",e.jsx(o.code,{children:"svh"})," units instead of ",e.jsx(o.code,{children:"vh"})," unit for the height, as ",e.jsx(o.a,{href:"https://www.w3.org/TR/css-values-4/#large-viewport-size",rel:"nofollow",children:"these units"})," are more reliable on mobile or other devices where elements such as the address bar toggle between being shown and hidden."]}),` `]}),` `,e.jsx(o.p,{children:e.jsx(o.a,{href:"?path=/story/components-graphics-scrollervideo--demo",children:"Demo"})}),` `,e.jsx(o.pre,{children:e.jsx(o.code,{className:"language-svelte",children:`