.image-swap img:nth-child(1) { position: absolute; } .image-swap img:nth-child(1):hover { opacity: 0; }