Reusable, themeable video gallery for Svelte with thumbnails, bullets, fullscreen, swipe and crossfade transitions.
Current version: 0.1.2
pnpm add @vietsch/svelte-video-gallery
# or
npm i @vietsch/svelte-video-gallery
<script>
import { VideoGallery } from '@vietsch/svelte-video-gallery';
const videos = [
{ title: 'Video 1', description: 'First', poster: '/a.jpg', source: '/a.mp4' },
{ title: 'Video 2', description: 'Second', poster: '/b.jpg', source: '/b.mp4' }
];
</script>
<VideoGallery
{videos}
thumbnailPosition="bottom"
thumbnailVariant="scroll"
timeDisplay={false}
showBullets={true}
showFullscreenButton={true}
/>
Override CSS vars in your app:
--action, --foreground, --background, --border-radiussvgvg- (e.g. svgvg-bullet, svgvg-icon)