/* this is for the bobble head hover effect */ .rotate { width: fit-content; height: fit-content; display: inline-block; position: absolute; } .rotate:hover img, .rotate:focus img { transform: rotate(3deg); } .rotate:hover span, a:focus span { opacity: 1; }