Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is that possible to make <video> mirrored?

Tags:

html

css

video

Is that possible to make a video inside tag mirrored horizontally or vertically?

like image 954
Sergei Basharov Avatar asked Jan 22 '13 10:01

Sergei Basharov


People also ask

Can we mirror videos?

Head over to Online Video Flipper by Clideo and select the clip you're wanting to mirror. The good news is it will work from any Android device — just ensure that you're connected to the Internet! To get started, hit the blue Choose file button on the homepage to find the video in your phone's gallery.

How do I mirror a video on my phone?

Open Google Photos on your Android phone, tap the Search bar. Tap Videos and choose the video you want to rotate or flip. Tap the Slide bar and tap Rotate to flip a video on Android.

How do I mirror an MP4 video?

How to Flip a Video Online. Upload the video that you want to flip vertically or horizontally, directly from your phone or computer. Choose from a variety of file formats including MP4, MOV, 3GP, AVI, WMV, and much more. Select 'Mirror' or 'Rotate' to flip your video across the axis.


2 Answers

You can do it using a CSS3 3D transformation.

#videoElement {     transform: rotateY(180deg);     -webkit-transform:rotateY(180deg); /* Safari and Chrome */     -moz-transform:rotateY(180deg); /* Firefox */ } 

This will rotate it 180 degrees around its Y axis (so you're now looking at it from behind) which gives the same appearance as being mirrored.

Example at http://jsfiddle.net/DuT9U/1/

like image 117
PhonicUK Avatar answered Sep 17 '22 00:09

PhonicUK


You can use CSS3 scaleX or scaleY set to -1 to respectively flip the video horizontally or vertically.

like image 30
Craig Blagg Avatar answered Sep 17 '22 00:09

Craig Blagg