To set up a category flow in Webflow where each category photo links to its corresponding category page, and to create a hover effect with a grayed-out overlay and vertically centered text, follow these steps.
Create a CMS Collection (e.g., Categories) with fields such as:
Name (Plain Text)
Slug (auto-generated)
Image (Image field)
Ensure each category has a unique photo and a generated slug for page routing.
Inside the Link Block, add a div block as an overlay:
Position: Absolute, Full.
Background Color: Semi-transparent black or gray (e.g., rgba(0, 0, 0, 0.5)).
Z-index: Higher than the image.
Initial Opacity: Set to 0%.
Add Transition: Opacity for smooth fading.
Inside this overlay, add a Text Block:
Set Display: Flex, Justify: Center, Align: Center on the Overlay Div to vertically and horizontally center the text.
Set the text as the category name (bind to the CMS field).
Select the Link Block and open the Interactions Panel.
Add a Hover In interaction:
Animate the Overlay Div’s opacity to 100%.
Add a Hover Out interaction:
Animate the Overlay Div’s opacity back to 0%.
Set up a CMS Collection for categories, use a Collection List with linked images, and create an absolute-positioned overlay div with flex centering for vertical and horizontal text alignment. Use Webflow’s interactions to fade in the overlay on hover.