.about-background { position: relative; height: 100%; overflow: hidden; background-repeat: no-repeat; background-size: cover; } .about-content { top: 33%; position: absolute; width: 80%; margin: 0 10%; } .about-avatar { position: relative; width: 10rem; height: 10rem; z-index: 3; } .about-avatar-img { width: 100%; height: 100%; border-radius: 50%; background-color: transparent; object-fit: cover; box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); } .about-avatar-img:hover { animation: rotate-animation 1s ease-in-out; } @keyframes rotate-animation { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }