L
L
lavezzi12016-03-01 07:47:10
css
lavezzi1, 2016-03-01 07:47:10

Video background full width and height of the container? how to stretch?

Guys, advise how to stretch the video to the width and height of the container. Maybe there is a plugin or a function.
IMPORTANT: I ​​don't need a videophone plugin like dfcb.github.io/BigVideo.js or vodkabears.github.io/vide
I have already inserted the video and it works ok. It is necessary to stretch the video on the container. Thanks

Answer the question

In order to leave comments, you need to log in

4 answer(s)
F
frontender, 2016-03-01
@frontender

vodkabears.github.io/vide

C
Cyber_bober, 2016-03-01
@Cyber_bober

.video{
position:absolute;
width:100%;
}

and resize class add
$(document).ready(function() {        
      $('.resize').height($(window).height());
        
      $(window).resize(function() {
        $('.resize').height($(window).height());
      })
    });

V
Vadim Bogomazov, 2016-03-01
@bogomazov_vadim

jsFiddle

A
Anna_BS, 2016-03-01
@Anna_BS

codepen.io

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question