Should I use a video as a background?
A reader writes in:
I’ve seen done beautifully, but I’m having a hard time finding any articles on best practices. I try to steer clients away from wanting video background even though it’s hard to argue against it because it does look stunning when done right.
“Look at my competitor’s website, they have a video!! You can do it!!”, they say.
The problem I run into is when a client actually sends me a video they want to use, it’s either crappy/low quality or the file size is way too big and would never load in time before the user leaves the site and never looks back.
It’s time for a THOUGHT DUMP!
Is it “just a trend”?
I don’t think “video” is a trend, but “cover the entire screen with video and set white text on top of it as the homepage” probably is a trend. Not that there is anything wrong with that. Another way to think of a trend is in fashion and people don’t tend to be as negative about being in fashion.
This particular trend is at least few years old now though. Posts like 60 Beautiful Examples of Websites With Full-Blown Video Backgrounds are over 3 years old (as far as I can tell).
People do tend to roll their eyes at old fashion.
Sometimes trends are benign to results
There is research that the seemingly superfluous trend of parallax scrolling doesn’t negatively impact “usability, enjoyment, satisfaction, and visual appeal” but increases fun.
A surprise to me, at least.
Does it fit with the brand? And your plan and vision for the site?
Remember, they hired you.
There is that classic analogy where you wouldn’t tell a plumber how to install a faucet. You hired them to do it because they are the expert. In this case, this company hired you to design a website because you are the expert. That holds true up until you think “well, you do tell the plumber which faucet you want installed.”
Still, if they hand you a video that doesn’t seem to work with the rest of the site, that’s not good.
Video is just a medium, it’s not exempt from needing to adhere to the brand. Does it fit the color palette? Does it have the same voice and tone? Does it feel like it belongs?
Video is only going to get more and more normal
How it is used will evolve as well. The people in Harry Potter weren’t surprised that the pictures in the newspapers moved, it was their normal.
The quality better be pretty darn high
Not because of the size, but because of the expectations. If you’re going to force me to see this video, it better be kinda awesome. It better help me understand your thing in a quicker and more meaningful way.
Is autoplay the only way?
People have aversion to autoplay. I don’t have a study to point you to, other than I’ve seen countless people squirm and grumble when they see it.
No sound
Autoplay isn’t nearly as bad when there is no sound, and to be fair, the trend is for these videos not to have sound. Although, for me at least, when I see a video start to play automatically, it triggers uh oh shut it down muscle memory.
Performance
This is the elephant in the room.
Even small videos are huge resources. Especially when you’re talking going full screen by default. Especially when the quality needs to be high or it will make the site embarrassingly trashy.
Do you have a plan to not completely destroy performance? There are lots of studies showing that bad performance is bad bad bad.
Perhaps you can only load the video after the rest of the page is loaded? Mustard cut it? Show a nice poster
image? Perhaps there is a way to do like…
<video
src="#defer-loading"
poster="nice-default.jpg
autoplay
/>
Are there more tricks you can look into? Inlining it? Extreme compression? Streaming? Limiting colors / black and white? Overlaying static stuff (e.g. dots/lines) to hide lower quality in an interesting way? Blur?
Budgeting
Do you have a performance budget, such that the video can trigger sacrifices elsewhere, evening page weight out a bit? Seems like a fair approach. And a common one, as the trend seems to point to very simple pages with simple calls to action to take you elsewhere.
Do you need a service?
In my experience, using a video hosting service like YouTube or Vimeo solves a boatload of pain points, like bandwidth fees and cross-browser interoperability.
Can you design the player such that it works for the design? Or do you need more full control?
Are you going to measure success?
If a video background is a sea change in the site’s design, wouldn’t it be a good idea to set up some metrics to ensure the change is a positive one? And have a plan if it isn’t?
Need the code to make it full screen?
Color me a little skeptical of things like jQuery plugins.
CSS is what you need to position the video in the background and size it.
Dudley Storey has approached it this way:
video.fullscreen {
position: fixed;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -100;
transform: translate(-50%, -50%);
}
And his demo even has some bonus features like pausing:
See the Pen Fullscreen HTML5 Page Background Video by Dudley Storey (@dudleystorey) on CodePen.
His blog post on the subject covers a few other important things too, like how to hide the video on small screens (if you want to) and dealing with IE 8.
Should I use a video as a background? is a post from CSS-Tricks