Doing it with style
CODE:
<iframe class="vimeo" src="https://player.vimeo.com/video/97930590" frameborder="0"></iframe>
CSS:
.vimeo {display:block; width:638px; height:358px; margin:0 auto;}
CODE:
<iframe class="vimeoXtra" src="https://player.vimeo.com/video/97930590" frameborder="0"></iframe>
CSS:
.vimeoXtra {display:block; width:638px; height:558px; margin:0 auto;}
CODE:
<div class="vimeoFrame"> <iframe class="vimeoXtra" src="https://player.vimeo.com/video/97930590" frameborder="0"></iframe></div>
CSS:
.vimeoFrame {width:638px; height:358px; overflow:hidden; margin:0 auto;} .vimeoFrame .vimeoXtra {margin-top:-100px;}
CSS:
@media only screen and (max-width: 768px) { .vimeoFrame .vimeoXtra { width:638px; height:358px; margin-top:0;} }
A simple method of hiding the control bar from the Vimeo video player.
This just uses CSS and a wrapper div, and allows you to play and pause a video just by clicking it.
Because this does not work on the iPad and iPhone I have added a fallback for tablets and smartphones so that the controls are visible on these devices.
Because of all the time and effort spent in producing this demonstration I would ask that you respect my copyright.
Your donations keep CSS PLAY running.
If your donation is for the use of a demo then please email me with the demo url after making your donation.