Star

.gallery { display: flex; flex-wrap: wrap; justify-content: space-between; } .gallery img { width: 30%; margin-bottom: 20px; opacity: 0; transition: opacity 1s ease-in-out; } .gallery img.active { opacity: 1; }