1.0.5 • Published 2 years ago
svelte-miniplayer v1.0.5
Functions:
import Miniplayer from 'svelte-miniplayer'
<Miniplayer active={true} padding="12rem" maxwidth="100%" width="200px" minwidth="10%" resize={true} position="top right" class="bg-dark">padding- CSS size unit, padding from the edgesmaxwidth- CSS size unit, max width of the containerwidth- pixels, width of the container, optional, auto if container is not resizableminwidth- CSS size unit, min width of the containerresize- Boolean, allows the container to be resizableactive- Boolean, turns on/off the miniplayer functionalityposition- initial position corner of the miniplayer: top|bottom + left|right ex:bottom right
The draggable footer inherits background color and font color from the miniplayer class.
Simple usage:
<Miniplayer active={true} padding="12rem" maxwidth="100%" width="200px" minwidth="10%" resize={true} position="top right" class="bg-dark">
<video src={url} class="aspect-ratio-16/9"></video>
</Miniplayer>