Hi, does anyone know if it’s possible to achieve a full page background video similar to this?
Thanks
Here is my site Read-Only: LINK
(how to share your site Read-Only link)
Hi, does anyone know if it’s possible to achieve a full page background video similar to this?
Thanks
Here is my site Read-Only: LINK
(how to share your site Read-Only link)
Hi Theo,
This should be easily done by adding a background video element and giving it the following styles: Width: 100%
, Height: 100vh
, Position: fixed
, Top: 0px
and Z-index: -1
.
This would make the video act as an background and keep it’s position fixed when scrolled.
Hi David, thanks a lot for that! I’ll give it a go now!
cheers
Theo
Works perfectly, thanks so much!
Sorry David, 1 more thing, do you think you could do the same with an html embed for a Vimeo stream?
Thanks
Yep, instead of adding the styles to a background video element, add them to the html embed element. Then remember to add width: 100%
and height: 100%
inside of the iframe.
You’re a star! cheers mate
Hmm, doesn’t seem to work on the width only the height, it’s keeping the aspect ratio, might be something to do with the stream I guess?
Can you share a read-only link and a published link, so I can take a look?
here you go. I appreciate this!