A product picture must do two issues without delay: draw the reader in visually and provides them sufficient context to do so. However loading each and every element onto the cardboard in advance temporarily clutters the structure and competes with the picture itself.
A picture hover disclose solves that well. The picture will get the overall highlight by way of default, and the supporting main points seem handiest when the consumer hovers over it. On this educational, we’ll construct precisely that during Divi 5, the place soaring any place on a product card fades in an overlay with the product title, worth, and a hyperlink to the product web page.
Contents
What We’re Development
Right here’s a have a look at the completed outcome sooner than we begin development it.
The overlay covers the overall picture space, so the disclose triggers easily regardless of the place the cursor lands. A cushy fade brings within the product title, worth, and button in opposition to a darkened background, giving the cardboard a blank, layered really feel with out overcomplicating the structure.
The Key Steps Wanted For This Impact
This construct breaks down into 3 portions: putting in place the product loop, layering the overlay content material, and wiring up the hover impact.
Step 1. Set Up The Product Grid The use of The Loop Builder
The structure begins with a easy construction. Upload a brand new Phase on your web page, insert a Row within it, and delete the 2 default columns so that you’re left with a unmarried column.

Now allow the Loop Builder on that column and set the Submit Kind to Merchandise. This tells Divi to copy the cardboard structure routinely for every product for your retailer.
Set the row’s Format Kind to Grid and activate Equivalent Peak Rows to stay the playing cards uniform around the structure.

Then set the Horizontal and Vertical Gaps to Min (4vw, 60px) for constant spacing between playing cards.

With the grid in a position, pass to the column’s Background Symbol settings and set the supply to Dynamic Content material > Loop Featured Symbol. Every card will now pull in its product picture routinely.
Upload an 8px Border Radius to around the corners reasonably.

At this level, the grid will have to be showing your product pictures in a blank, repeating structure. In your next step, we’ll construct the overlay that sits on best of every card.
Step 2. Layer The Overlay On Every Card
Get started by way of including a Row within the similar column. This row will act because the overlay container.
Cross to Background Colour > Gradient, set the primary colour’s transparency to 0%, and set the second one colour to black. This creates the darkish overlay tint on best of the product picture.
Throughout the row, insert a Workforce module with a 2-column structure, then upload a Textual content module to every column.
Within the left column, set the Textual content modules to Dynamic Content material: one to Loop Product Name and the opposite to Loop Product Value. Every card will then pull in the right kind product title and worth routinely.
Under the Workforce, upload a Button module and set its hyperlink to Dynamic Content material > Loop Hyperlink so the button takes the consumer without delay to that product’s web page.

Now set the Row Peak to 100% so the overlay stretches around the complete product card.
After all, modify the spacing at the Workforce and Button to place the content material the place you wish to have it throughout the overlay. As soon as that’s executed, the cardboard is totally constructed and in a position for the hover impact.

Step 3. Twine Up The Hover Impact
The overlay is in position. Now we simply wish to inform Divi when to turn it.
Make a choice the overlay row and pass to Filters. Within the default state, set the Opacity to 0%. This helps to keep the overlay hidden till the consumer interacts with the cardboard.
Transfer to the Hover state and set the Opacity to 100%. Divi will deal with the transition routinely, so the overlay fades in easily as quickly because the cursor strikes over the cardboard.
Since the overlay spans the overall card, the disclose triggers from any place at the picture somewhat than a small hotspot. The product identify, worth, and button seem proper the place the consumer’s consideration already is.
Ultimate Outcome
Right here’s the completed structure in motion.
Get started Development In Divi 5 These days!
This hover disclose structure is a straightforward option to stay product grids visually targeted whilst nonetheless giving consumers the guidelines they want. By means of letting the picture take heart degree and revealing main points handiest on interplay, the design remains blank with out sacrificing usability.
Since the structure is constructed with Divi 5‘s Loop Builder and dynamic content material, it routinely adapts on your retailer. Upload, take away, or replace merchandise, and the grid updates itself with none additional structure paintings.
As soon as you already know the construction, you’ll be able to reuse the similar trend throughout your web page. The similar methodology works nice for portfolios, staff individuals, weblog posts, and any image-based grid the place you wish to have main points to seem handiest when the consumer interacts with the cardboard.
Check out experimenting with other overlay gradients, animations, or button kinds to compare your web page’s branding and create a extra attractive product surfing revel in.
The put up Growing Interactive Product Playing cards With Divi 5’s Loop Builder gave the impression first on Sublime Topics Weblog.
WordPress Web Design
