XF 2.0 Not sure how to add this for background

iamjudd

Well-known member
I want to add this video background that currently uses this in a regular html page:

CSS:
Code:
#background {
    overflow: hidden;
}

#background video {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -50%;
    left: -50%;
    min-width: 100%;
    min-height: 100%;
    margin: auto;
    filter: brightness(50%);
    -webkit-filter: brightness(50%);
    -moz-filter: brightness(50%);
    -o-filter: brightness(50%);
    -ms-filter: brightness(50%);
}

HTML:
Code:
        <div id="background">
            <video autoplay loop>
                <source src="images/video.webm" type="video/webm">
            </video>
        </div>
 
Alright so I got it to show up but it is only showing on the main page and not when you go to profiles, threads, etc...

Added the css to extra.less and the div to page_container under <body data-template="{$template}">
 
Replace the html with this:
HTML:
        <div id="background">
            <video autoplay loop>
                <source src="https://mavericksforum.com/styles/mavericks/images/video.webm" type="video/webm">
            </video>
        </div>
 
Back
Top Bottom