.image img { max-width: 800px; } .image img:hover { max-width: none; margin-left: 50%; transform: translateX(-50%); } #left_hover_arrow img:hover, #right_hover_arrow img:hover { margin: auto; transform: none; } div.image { overflow: visible !important; }