.container { margin: 20px 0 0 50px; width: 500px; position: relative; } .container:hover .circle { animation-name: anim; animation-duration: 0.5s; animation-fill-mode: forwards } .container:hover .title { color: #fff; } .circle { display: inline-block; position: absolute; width: 100px; height: 100px; border-radius: 50%; background-color: blue; } .title { margin-left: 130px; } @keyframes anim { 0 { border-radius: 50%; } 1% { border-radius: 50px 45px 45px 50px; } 100% { width: 100%; border-radius: 50px 3px 3px 50px; } } <div class="container"> <div class="circle"></div> <div class="title"> <h2>МОИ ДОМЕНЫ</h2> <p>размещение/редактирование размещения/удаление</p> </div> </div> Tell me how to make the text displayed on top of the animation, like here.
and when you shoot the guidance the animation was played in the opposite direction.