Image Gallery Block overlay fade on hover
-
Hello,
I’m struggling to apply a hover state for images in the Image Gallery Block or at least the Image Block itself. After hovering the images should be clickable and redirect to other pages.
Here is an example of what I aiming to accomplish: Figma prototype
This is a typical gallery of portfolio projects, and I find it surprising that after browsing the forum and tons of tutorials, I did not find a clear solution to my problem. Unless I’m missing something…
My goal is to build this website using only with Gutenberg, I don’t want to use plugins. I’m open to use additional CSS, but I’m a beginner and it looks like I need some support.
I found this code on the W3Schools website: How to do it example
I added an additional CSS class “custom.img” to all Image Blocks in the Image Gallery Block and tried to insert the W3S code by replacing “.container” or “.image” with “.custom-img”.
It doesn’t work, so I guess it’s not the way to go.
I will be very grateful for a tip on how to implement the W3S code into my Editor, or how else I can achieve the intended effect.
All the best, Kacper
PS. I’m working on a website in a local environment, so I can’t send the link.
- The topic ‘Image Gallery Block overlay fade on hover’ is closed to new replies.