.gallery { list-style: none; padding: 0; overflow: hidden; position: relative; &:focus { outline: none; } .gallery-item { position: absolute; opacity: 0; filter: blur(15px); transition: opacity 0.5s ease-in, filter 0.5s ease-in; &.current { opacity: 1; filter: blur(0); } } } // .gallery .gallery-item