I just want to show the bottom content .Initially I gave the hidden value to the overflow-x and overflow-y property then I want to show the content which is situated in the bottom of y direction. Here's my code:
<div class="parent">
<p class="child">
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Provident, sed. Ducimus at ex quo tenetur
accusamus cupiditate accusantium officiis. Recusandae libero natus similique ea amet aut quae accusamus,
neque ad!
</p>
</div>
css:
.parent {
position: relative;
border: 2px solid black;
width: 200px;
height: 100px;
overflow-x: hidden;
overflow-y: hidden;
}
.child {
position: absolute;
transform: translate(50px, -50px);
}
You can check codepen