#navbar-logo { width: 48px; height: 48px; transition: transform .8s ease-in-out; &:hover{ transform: rotate(360deg); } }