JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<h3 class="block_header new_tab"><a href="/drugie-novosti/">Это интересно</a></h3>
</div>
CSS
.container {
overflow: hidden;
border-bottom: 2px solid #A01818;
margin: 20px 15px 0 15px;
height: 46px;
}
.block_header {
color: #303030;
font-size: 16px;
font-family: "Roboto", sans-serif;
font-weight: 700;
line-height: 16px;
margin: 0;
text-align: right;
text-transform: uppercase;
}
.new_tab:before {
border-top: 46px solid #fff;
border-right: 52px solid transparent;
content: '';
display: inline-block;
margin: 0 -52px -6px 0; /* margin: 0 -4px -6px 0; - если теги <h3> и <a> будут с переносами */
position: relative;
transition: all 0.1s ease-in;
z-index: 2;
}
.new_tab a {
background: #a01818;
color: #fff;
display: inline-block;
padding: 7px 7px 3px 39px; /* Третье значение - высота под текстом */
position: relative;
text-decoration: none;
transition: all 0.1s ease-in;
z-index: 1;
}
.container:hover .new_tab:before {
transition: all 0.3s ease-out;
margin-bottom: -26px;
}
.container:hover a {
transition: all 0.3s ease-out;
padding-bottom: 23px;
padding-left: 59px;
}