#trumppresident{ transition: transform 0.5s; width: 500px; height: 402px; } #trumppresident:hover{ transform: rotate(45deg); }