Skip to content Skip to sidebar Skip to footer

Html5 Video Perspective Transform

Would it be possible to set via CSS or jquery video perspective to fit exactly where and how I need it ? See picture: I want the video to fit in the red area. Thanks in advance!

Solution 1:

Yes, it is possible. You will need to familiarize yourself with CSS3 transform and perspective properties.

.video-wrapper {
  perspective: 1000px;
}
video {
  transform: rotateY(-30deg);
}
<divclass="video-wrapper"><videowidth="400"controls><sourcesrc="http://www.w3schools.com/HTML/mov_bbb.mp4"type="video/mp4"><sourcesrc="http://www.w3schools.com/HTML/mov_bbb.ogg"type="video/ogg">
    Your browser does not support HTML5 video.
  </video></div>

Without going through all of the effort to create a solution, you can use an HTML5 canvas element

Post a Comment for "Html5 Video Perspective Transform"