JSFiddle - React, Tailwind, and code Playground
by dine
HTML
<iframe class="video" width="560" height="315" src="//www.youtube.com/embed/ADLmRWZqFOI" frameborder="0" allowfullscreen></iframe>
CSS
.video {
position: absolute;
top: 50%;
left: 50%;
width: 560px;
height: 315px;
margin:-158px 0 0 -280px;
-webkit-animation:spin 4s linear infinite;
-moz-animation:spin 4s linear infinite;
animation:spin 4s linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }