Goal: move arrow to the right while hovering the area near the title and the arrow.
Problem: no matter what selector do I use, either >
or without, arrow does not move.
https://codepen.io/aetrnm/pen/KKmBdpy
a, a:hover, a:visited, a:active {
color: inherit;
text-decoration: none;
}
.container {
color: #ccc;
font-size: 12rem;
height: 100%;
width: 100%;
text-align: center;
}
.arrow-next {
transition: transform 1s ease;
}
.content {
cursor: pointer;
}
.content:hover {
color: #aaa;
}
.content:hover .arrow-next {
transform: translateX(10%);
}
<div class="container">
<div class="content">
<div class="title">START</div>
<a class="arrow-next" href="#">➜</a>
</div>
</div>