pinafore/routes/_components/AutoplayVideo.html
2018-04-29 17:45:03 -07:00

21 lines
367 B
HTML

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