Initially, the position of the switch on the Individual link. When pressed, the white area around Individual should smoothly move to the Company link and it should go to the active state. I tried to do this with the help of pseudo-classes and transition, but it did not work out. Tell me, please, the solution.
.status-text { display: block; margin-bottom: 100px; } .status-buttons { display: inline; padding: 17px 2px; border: 1px solid #a2a3a5; border-radius: 30px; } .status-buttons a { text-decoration: none; color: #a2a3a5; padding: 14px 28px; } .status-buttons a:active { background: #fff; border-radius: 30px; color: #000; box-shadow: 0 20px 100px rgba(0, 0, 0, 0.4); } <div class="status-buttons"> <a href="#">Individual</a> <a href="#">Company</a> </div> 