JSFiddle - React, Tailwind, and code Playground
by Андрей Хамедов
HTML
<div class="top">
<div class="wrapper">
<video>
<iframe src="https://player.vimeo.com/video/183896385?title=0&byline=0&portrait=0&transparent=0&autoplay=1" width="640" height="480" frameborder="0" title="Funny Cat Videos For Kids" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" data-ready="true"></iframe></video>
</div>
</div>
CSS
.top {
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
position: relative;
}
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.wrapper {
position: relative;
padding-bottom: 200%;
transform: translateY(-35.95%);
}