JSFiddle - React, Tailwind, and code Playground

HTML

<div id="f1_container">
    <div id="f1_card" class="shadow">
        <div class="front face">
            <video id="vid1" width="480" height="267" durationHint="33" >
                <source    src="http://cdn.kaltura.org/apis/html5lib/kplayer-examples/media/bbb_trailer_iphone.m4v"/>
            </video>
                
            </div>
                <div class="back face center">
                    <p>This is nice for exposing more information about an image.</p>
                    <p>Any content can go here.</p>
                </div>
            </div>
            </div>

CSS

#f1_container {
    position: relative;
    margin: 10px auto;
    width: 400px;
    height: 400px;
    z-index: 1;
}
.face.back {
    display: none;
}

#f1_container {
    -webkit-perspective: 1000;
}
#f1_card {
    width: 100%;
    height: 100%;
    -webkit-transform-style: preserve-3d;
    -webkit-transition: all 0.5s linear;
}
#f1_container:hover #f1_card {
    -webkit-transform: rotateY(180deg);
}
.face {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
}
.face.back {
    display: block;
    -webkit-transform: rotateY(180deg);
    -webkit-box-sizing: border-box;
    padding: 10px;
    color: white;
    text-align: center;
    background-color: #aaa;
}