Have been trying to replicate the effect of the hero section within this site. It’s a video on the background being looped, with a parallax foreground effect, to give it a more backgroundy feel I suppose. It takes up the entire width and height of the viewport as long as it’s scrolled to the top. When you resize the browser, the section resizes accordingly. When you scroll down, it scrolls like a normal image.
I’m just wondering, how would you achieve the same effect with webflow? Any ideas anyone?
There is no parallax effect.
The video is in a 100% height section that take up all the browser height, whatever the height is.
So use a html widget to place custom code for a looped HTML5 video (search the forum for html5 video code), add min height 100% and min width 100% to the custom code, along with the loop parameter. Be aware that this won’t work as expected on mobile, you shold deactivate that alltogetehr for mobile and replace with a animated gif (videos don’t autoplay on mobile). oh and there is a transparent pattern on top of the video, to make it more discreet as a background.
It’s pretty simple to add in a video background, so long as you have the video in several different formats and can host the video on a CDN (Content Delivery Network). Setup hosting on GoDaddy or Amazon, then create a FTP and login using an FTP client like Filezilla, Cyberduck or FTPcore.
Then have your videos ready in .mp4, .ogv and a backup image for browsers that cannot display video backgrounds, and embed them like this:
Updated to add in a parallax second section. I would need to clean up the positioning of any elements that sit on top of the video. http://w-video-background.webflow.io/
Absolutely awesome @Waldo_Broodryk!! Thank you so much for taking your time to whip something up for me! That’s definitely what I’ve been looking for, I really appreciate your help. I think I can host the videos ok, but getting them in ogg format I’m not quite sure of, as I don’t have Premiere. No worries though, at least I have something to play with. Thanks again!
Just click the clone button when you’re looking at my profile on webflow
And for the videos all you have to do is upload them to a free video formatting website online, I also included a .webm version of the video because it’s much more widely accepted across browser support, used it in the second one
Enjoy!!! Let me know if you have any questions. And feel free to promote this post so others can make it as well.
Either I’m looking at the wrong place, or I haven’t found the “clone” button yet. I went to your profile: Forum | Webflow, but I can’t seem to find the webflow I want to clone, nor can I see any clone buttons. Have I missed something?