@fluid-ds/media
v0.0.3-alpha.0
Published
Media web components for Fluid (expansion pack): video, video playlist, animated image with play/pause, zoomable frame, Web Animations API wrapper.
Maintainers
Readme
@fluid-ds/media
Media web components for Fluid: video, playlists, animated images with play/pause, zoomable frames, and a declarative Web Animations API wrapper. Expansion pack.
<fluid-video src="/clip.mp4" controls></fluid-video>Install
pnpm add @fluid-ds/mediaimport "@fluid-ds/media/define/video";
import "@fluid-ds/media/define/video-playlist";
import "@fluid-ds/media/define/animated-image";
import "@fluid-ds/media/define/zoomable-frame";
import "@fluid-ds/media/define/animation";Components
| Tag | Use case |
| --- | --- |
| <fluid-video> | Themed wrapper around native <video> |
| <fluid-video-playlist> | Playlist-driven video player with auto-advance |
| <fluid-animated-image> | GIF / APNG / animated-WebP with play/pause control (canvas-snapshot trick) |
| <fluid-zoomable-frame> | Pan + zoom container for images, iframes, SVG (scroll wheel + drag pan) |
| <fluid-animation> | Declarative wrapper around the Web Animations API |
Each component reads from the same --fluid-* semantic tokens as the rest
of the system, so themes flow through without extra work.
License
MIT, © Fluid contributors
