I've got this element (.tas-fullscreen), which contains a .media-container and a .content-container. The media-container contains a video element and the content-container contains text. It looks fine when not rotating the .tas-fullscreen element, but when I rotate it, the video element is automatically placed above all elements. The text element, should always be on top of the video element.
I've tried with a high z-index on the .content-container and a low on the .media-container, but with out any effect.
Here's a simple example
.tas-fullscreen{
position: absolute;
left: 0px;
top:600px;
overflow: hidden;
z-index: 10;
height: 300px;
width: 600px;
font-size: 46px;
transform: rotate(-90deg);
transform-origin: 0% 0%;
display: flex;
}
.media-container{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
z-index:0;
}
.media-content{
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index:10;
}
video{
object-fit: cover;
height: 100%;
width:100%;
z-index:0;
}
<div class="tas-fullscreen">
<div>
<div class="media-container">
<video class="video" autoplay="true" loop="" muted="" data-origwidth="0" data-origheight="0"><source src="https://theadstore.io/wp-content/uploads/2020/09/dcf3ca22-d06f-44d1-b140-b7fdbf7faffa.mp4" type="video/mp4"></video>
</div>
<div class="media-content">
<div class="heading">
This is the header
</div>
<div class="body">
This is the body
</div>
</div>
</div>
</div>
https://theadstore.io/?p=2232&a=niels
Hope you can help me.