JSFiddle - React, Tailwind, and code Playground

by yash009

HTML

<div class='embed-container'>
			<iframe src="https://www.youtube.com/embed/GT_J4eEnmG4" "
			allowfullscreen="allowfullscreen" width="70%" height="100%" align="center">
			</iframe>
		</div>


		<div class='embed-container'>
			<iframe src="https://www.youtube.com/embed/_5Jwb0Ophdc"" 
			allowfullscreen="allowfullscreen"  width="50%" height="150%" align="center">
			</iframe>
		</div>
		
		<div class='embed-container'>
			<iframe  src="https://www.youtube.com/embed/PVY4wjF_lvo"
			allowfullscreen="allowfullscreen"  width="60%" height="70%" align="center" >
			</iframe>
		</div>
		
		<div class='embed-container'>
			<iframe src="https://www.youtube.com/embed/hXg78e7L3I8" " 
			allowfullscreen="allowfullscreen"  width="70%" height="100%" align="center">
			</iframe>
		</div>
		
		<div class='embed-container'>
			<iframe src="https://www.youtube.com/embed/vRE9XwMmg_o" "
			allowfullscreen="allowfullscreen"  width="50%" height="150%" align="center">
			</iframe>
		</div>
		
		<div class='embed-container'>
			<iframe src="https://www.youtube.com/embed/EgdO6DxBAvI" " 
			allowfullscreen="allowfullscreen"  width="50%" height="150%" align="center">
			</iframe>
		</div>
		
		<div class='embed-container'>
			<iframe src="<iframe width="916" height="515" src="https://www.youtube.com/embed/6zSRRfevpRw" "
			allowfullscreen="allowfullscreen"  width="50%" height="150%" align="center">
			</iframe>
		</div>

CSS

.embed-container {
	position: sticky;
	width: 100%;
	height: 0;
	padding-bottom: 56.27198%;
	background-size: cover;
	background-repeat: no-repeat;
  margin-bottom: 20%;
 }

.embed-container iframe {
	position: absolute;
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
 }