<section>
  <div class="dot">1</div>
  <div class="dot">2</div>
  <div class="dot">3</div>
  <div class="dot">4</div>
</section>
section:hover > .dot{
  offset-distance: 100%;
  offset-rotate: 360deg;
}

.dot:nth-child(1){
  offset-path: path('M 50 50 Q 0 50 0 0');
}
.dot:nth-child(2){
  offset-path: path('M 50 50 Q 50 0 100 0');
}
.dot:nth-child(3){
  offset-path: path('M 50 50 Q 100 50 100 100');
}
.dot:nth-child(4){
  offset-path: path('M 50 50 Q 50 100 0 100');
}

.dot {
  position: absolute;
  background: lightblue;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid slateblue;
  border-radius: 15px;
  offset-rotate: 0deg;
  transition: 
    offset-distance 1300ms ease-out,
    offset-rotate 1300ms ease-out;
}

section{
  width: 100px;
  height: 100px;
  margin: auto;
  cursor: pointer;
}

body{
  background: Azure;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-weight: bold;
}

*{
  box-sizing: border-box;
  margin: 0; 
  padding: 0;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.