You can use this code to Custom CSS box
/* Gallery hover 06 */ .gallery-grid-item { transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for moving and adding shadow */ } .gallery-grid-item:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); }
Result like this