.image-block { transition: all .5s ease-in-out;} .image-block:hover { background-color: #00000; opacity: 0.6; transition: all .5s ease-in-out;}