mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-13 02:37:20 +01:00
ebcade8035
* constrain gif backgrounds. fixes #159 * nit: move background-* styles to AutoplayVideo.html
21 lines
369 B
HTML
21 lines
369 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> |