How to use Vimeo Header Block
Published in
1 min readDec 7, 2018
Example site:
Fix overlapping issues:
- Set
position: relative;
- Set
z-index: 1;
- Note, you don’t always need to set z-index.
Steps for copying into a site:
- Find the header that you’d like to use on the example site.
- Open the example site in the builder
- Go to the page the header is on
- Grab the CSS from the Page Settings
- Paste CSS into page setting where the video header will be used
- Update the mobile background image in the css if needed. That is located in the Page Settings CSS.
- Include the following HTML just before the
</header>
tag
<div class="image-overlay"></div>
<div class="video-overlay"></div>
<div class="video-background">
<div class="video-foreground">
<iframe class="video-bg" src="https://player.vimeo.com/video/287060201?autoplay=1&loop=1&autopause=0&muted=1&title=0&byline=0&portrait=0&background=1" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" frameborder="0"></iframe>
</div>
</div>
8. Change the 9 digit video id number in the iframe code with your desired Vimeo video. In the example above the number is 287060201.
9. You can modify the overlay color and intensity by editing the background-color of .video-overlay
and/or .image-overlay