JSFiddle - React, Tailwind, and code Playground
HTML
<div class="main">
<div class="banner">
<p>a</p>
<p>b</p>
<p>c</p>
<p>d</p>
</div>
<div class="game">
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<div class="scroll">
<div class="top"></div>
<div class="bottom"></div>
</div>
</div>
</div>
CSS
.main {
border: 1px solid red;
width: 500px;
height: 500px;
position: absolute;
overflow: hidden;
}
.main:after {
content: '';
display: block;
position: absolute;
height: 100%;
width: 100%;
top: 0;
left: 0;
z-index: -1;
background: blue;
}
.banner {
position: relative;
width: 100%;
height: auto;
background: green;
z-index: 1;
overflow: hidden;
color: yellow;
}
.game {
color: orange;
position: relative;
}
.scroll {
width: 10px;
height: 100%;
background: yellow;
position: absolute;
right: 0;
top: 0;
}
.top, .bottom {
width: 10px;
height: 10px;
position: absolute;
background: red;
}
.top {
top: 0;
}
.bottom {
bottom: 0;
}