I have created a simple demo of my problem.
.set-overflow{
width: 300px;
height: 300px;
position: relative;
overflow: auto;
}
.set-relative{
overflow: hidden;
width: 100%;
height: 100%;
background: blue;
}
.element{
position: absolute;
right: 0;
bottom: -20px;
background: yellow;
}
.set-overflow:hover .element{
bottom: 0;
}
<div class="set-overflow">
<div class="set-relative">
<div class="element">content</div>
</div>
</div>
I have two parents and element, which should appear on parent's hover. The problem is that I have to get rid of scroll without changing parents' properties.
Please note that it is just a simple example, so I have to solve this with minimum possible effect on the other elements. Thanks!
JSFiddle: https://jsfiddle.net/o0abLxek/15/