Created
July 4, 2017 17:34
-
-
Save claushingebjerg/f14faa3514778c2b35715189e13bdcd9 to your computer and use it in GitHub Desktop.
3d canvac perspective transform
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .video-wrapper { | |
| perspective: 1000px; | |
| } | |
| video { | |
| transform: rotateY(-30deg); | |
| } | |
| <div class="video-wrapper"> | |
| <video width="400" controls> | |
| <source src="http://www.w3schools.com/HTML/mov_bbb.mp4" type="video/mp4"> | |
| <source src="http://www.w3schools.com/HTML/mov_bbb.ogg" type="video/ogg"> | |
| Your browser does not support HTML5 video. | |
| </video> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment