pinafore/routes/_components/AutoplayVideo.html

21 lines
365 B
HTML
Raw Normal View History

2018-03-31 17:45:11 +00:00
<video
class="autoplay-video {className || ''}"
aria-label={ariaLabel || ''}
style="background-image: url({poster});"
{poster}
{width}
{height}
{src}
2018-03-31 17:45:11 +00:00
autoplay
muted
loop
webkit-playsinline
playsinline
/>
<style>
.autoplay-video {
background-repeat: no-repeat;
background-position: center;
background-size: contain;
}
</style>