JSFiddle - React, Tailwind, and code Playground
by 규연 황
HTML
<a href="" class="next">다음</a>
SCSS
.next {
display: inline-flex;
position: relative;
padding-right: 30px;
margin: 40px;
&::before {
content: '';
position: absolute;
top: 2px;
right: 0;
width: 14px;
height: 21px;
transform: translateX(-14px) scaleX(0.5);
transform-origin: 100% 50%;
background-image: url("data:image/svg+xml,%3Csvg width='34' height='54' viewBox='0 0 34 54' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 3L30 23.7113L2 52' stroke='black' stroke-width='5'/%3E%3C/svg%3E%0A");
background-size: 100% 100%;
transition: all 0.3s ease-out;
}
&::after {
content: '';
position: absolute;
top: 11px;
right: 4px;
width: 16px;
height: 2px;
transform: scaleX(0);
background: #000000;
transform-origin: 0% 0%;
transition: all 0.3s ease-out;
}
&:hover {
&::before {
transform: translateX(0) scaleX(1);
}
&::after {
transform: scaleX(100%);
}
}
}