Add responsive and lazy image loading
This commit is contained in:
10
static/vime.svelte
Normal file
10
static/vime.svelte
Normal file
@ -0,0 +1,10 @@
|
||||
<script>
|
||||
import { Player, Video, DefaultUi } from '@vime/svelte';
|
||||
</script>
|
||||
|
||||
<Player theme="dark" style="--vm-player-theme: #e86c8b;">
|
||||
<Video crossOrigin={true} poster="https://media.vimejs.com/poster.png">
|
||||
<source data-src="https://media.vimejs.com/720p.mp4" type="video/mp4"/>
|
||||
</Video>
|
||||
<DefaultUi />
|
||||
</Player>
|
||||
Reference in New Issue
Block a user