Support » Plugin: mb.YTPlayer for background videos » How to make background of custom div

Viewing 1 replies (of 1 total)
  • Plugin Author pupunzi


    Yes, it’s possible. It is not documented as it presumes you are a little bit more confident with the HTML DOM structure. You can find documentation (related to the jQuery plug-in) here:

    You should not use the shortcode method but directly write the DOM constructor in the content editor as follow:

    <div id="P1" class="movie" style="display:block; margin: auto; background: rgba(0,0,0,0.5)" data-property="{videoURL:'',containment:'#containmentID',startAt:50,mute:false,autoPlay:false,loop:false,opacity:.8}"></div>

    Where “containmentID” is the ID of the DOM element where you whant to play the movie.


Viewing 1 replies (of 1 total)
  • The topic ‘How to make background of custom div’ is closed to new replies.