I’m trying to create the next:
-A grid of thumbnails where every thumbnail contains an image and a text over it.
-Every thumbnail links to another page. (No problem)
-The text and image transparency vary when hover. (No problem)
So far I have a section with a row of columns. Every column contains a link block and inside an image with specific dimensions. However the different kinds of text (heading, paragraph, text block) cannot overlap the image. Of course I tried to make the text relative or absolute to the image and push it inside but it’s not enough since I need the text area to have the same dimensions as the image so they both change the style when hovering.
Create A div block inside the column and give it a class
Set position to absolute and set width and height to 100%, This will make it overlap on the image
Now place your text inside the div block
Set display to none
Now Create a new interaction and make to affect the div block
Set trigger to hover
Now hover over to display block and Hover out to display None
The down side is you have to create different div blocks for each column with different classes since you going to use interaction to achieve this effect.
The row of columns is set to 100% to be fully responsive and every image is set to 100% width and auto height to fill every column.
Actually it could be solved with a button with a background image and a link text but it doesn’t fit to my requirements. Every image has a different size and proportions I need to keep and I’m afraid the button background will crop some parts or create some white areas depending on the screen proportions. I’m sure it’s really simple to get but I’m missing something…
For the hover effect I think it’s easier than using interactions. Just by playing with the none and hover states of the class you already can get many cool effects.
The three pictures from the left they all have the same proportions (400x300 px). The two on the left are images and the two on the right are buttons with a picture set as a background. As you can see there is an extra red area (this is just the background color for testing) depending on the screen size for the buttons whilst the images adapt perfectly without cropping or adding new space