JSFiddle - React, Tailwind, and code Playground
HTML
<div class="test">
<div class="test-text">Подробнее</div>
</div>
SCSS
.test {
font-size: 24px;
display: flex;
align-items: center;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: 1px solid #ccc;
position: relative;
&::before {
content: '➤';
position: absolute;
right: 10px;
top: 10px;
transform: scale(1, 2);
color: #ccc;
transition: all .3s;
}
&::after {
content: '➤';
position: absolute;
right: 30px;
top: 10px;
transform: scale(1, 2);
color: #ccc;
transition: all .3s;
}
&-text {
position: relative;
width: 100%;
height: 100%;
display: block;
padding: 15px;
&::after {
content: '➤';
position: absolute;
right: 50px;
top: 10px;
transform: scale(1, 2);
transition: all .3s;
}
}
}
.test:hover::before {
color: green;
right: 15px;
}
.test:hover::after {
color: yellow;
right: 40px;
}
.test-text:hover::after {
color: red;
right: 65px;
}