.image-button { position: relative; } .image-button > img { position: absolute; transition: opacity 0.3s; }