I have a unique challenge with an image gallery that I'm working on. Each image is enclosed within a box, and I am looking to incorporate hidden icons on the right and left sides of the box. These icons should not be visible to the user, but rather appear as transparent layers representing about 5-10% of each side. The idea is for these icons to slide in when hovered over, triggering specific actions based on their position. For example, hovering over the icon on the right could delete the image, while hovering over the icon on the left could set it as the featured image of a post. While I can manage the events using Backbone, I am struggling to find a solution for the CSS/HTML and potentially jQuery aspects.
.box {
float: left;
min-height: 282px;
padding-bottom: 10px;
padding-left: 10px;
padding-right: 10px;
padding-top: 10px;
width: 282px;
}
img {
max-height: 282px;
max-width: 100%;
z-index: 1;
}
Thanks for any help or insights! - Radzo