From a82f20a7f3199ec7377e2205083db6ee03f1e485 Mon Sep 17 00:00:00 2001 From: MinamiFunakoshiTR Date: Wed, 6 Aug 2025 10:18:40 -0400 Subject: [PATCH] documents/demo cleanup --- .../ScrollerVideo/ScrollerVideo.mdx | 15 +++++------- .../ScrollerVideo.stories.svelte | 24 ++----------------- .../ScrollerVideo/ScrollerVideo.svelte | 4 +--- .../ScrollerVideo/demo/Embedded.svelte | 24 +++++++++++++++---- 4 files changed, 29 insertions(+), 38 deletions(-) diff --git a/src/components/ScrollerVideo/ScrollerVideo.mdx b/src/components/ScrollerVideo/ScrollerVideo.mdx index c678e8a5..acd2ba41 100644 --- a/src/components/ScrollerVideo/ScrollerVideo.mdx +++ b/src/components/ScrollerVideo/ScrollerVideo.mdx @@ -10,7 +10,7 @@ The `ScrollerVideo` component creates interactive video experiences that respond ## Basic demo -To use the `ScrollerVideo` component, import it and provide the video source. Set the `height` prop to any valid CSS height value such as `1200px` or `200lvh` to set the scroll height. + To use the `ScrollerVideo` component, import it and provide the video source. The scroll height defaults to `200lvh`, but you can adjust this to any valid CSS height value such as `1200px` or `200lvh` with the `height` prop. > 💡TIP: Use `lvh` or `svh` units instead of `vh` unit for the height, as [these units](https://www.w3.org/TR/css-values-4/#large-viewport-size) are more reliable on mobile or other devices where elements such as the address bar toggle between being shown and hidden. @@ -21,6 +21,7 @@ To use the `ScrollerVideo` component, import it and provide the video source. Se import { ScrollerVideo } from '@reuters-graphics/graphics-components'; + ``` @@ -81,15 +82,11 @@ Setting `embedded` will autoplay the entire `ScrollerVideo` component like a vid diff --git a/src/components/ScrollerVideo/ScrollerVideo.stories.svelte b/src/components/ScrollerVideo/ScrollerVideo.stories.svelte index 3a3b12cf..ffdacf57 100644 --- a/src/components/ScrollerVideo/ScrollerVideo.stories.svelte +++ b/src/components/ScrollerVideo/ScrollerVideo.stories.svelte @@ -137,17 +137,7 @@ }; const args = { - trackScroll: true, - height: '500lvh', showDebugInfo: true, - autoplay: false, - full: true, - sticky: true, - objectFit: 'cover', - transitionSpeed: 8, - frameThreshold: 0.1, - useWebCodecs: true, - lockScroll: true, }; @@ -168,21 +158,11 @@ - - - + + + + + + + + + + +