<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Rerum impedit dignissimos modi est quisquam corporis voluptate magnam deserunt! Numquam laudantium sit magni error. Repellat officia nulla eum modi, in consequuntur deserunt.</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Rerum impedit dignissimos modi est quisquam corporis voluptate magnam deserunt deserunt!.</p>
<p>Lorem ipsum dolor sit amet.</p>
xxxxxxxxxx
html, body {
width: 100%;
height: 100%;
}
body {
display: flex;
}
p {
// border: 1px solid #000;
margin: auto;
width: 300px;
padding: 10px;
line-height: 36px;
font-size: 20px;
mask:
linear-gradient(270deg, transparent, transparent 30%, #000),
linear-gradient(270deg, #000, #000);
mask-size: 100% 46px, 100% calc(100% - 46px);
mask-position: bottom, top;
mask-repeat: no-repeat;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.