-
AuthorPosts
-
September 30, 2019 at 5:46 pm #1143449
Hi,
In order to reduce the click to info on our website I’m trying to update our landing pages with picture blocks that you can click to find other content. What I would like to create is a block with one background image which displays text and multiple links overlays when you mouse over the image. you can see 2 examples here (5 middle blocks) and here (6 middle blocks).
I tried reproducing it with the Masonry Grid but didn’t find a way to put more than just one link.
Can you help?
Thanks,October 1, 2019 at 4:10 pm #1143804Hey J_L,
Sure, but it isn’t possible with how the masonry element is made.
You can do the following:
1. Add 1/3 under Layout Elements, set Row Settings to Equal Height Columns.
2. Add a background image to it and padding.
3. Insert a textblock inside it, write those texts and add links.
4. Repeat.
Hope this helps.Best regards,
NikkoOctober 1, 2019 at 5:02 pm #1143843Hi Nikko,
Thank you for the suggestion, I’ll try it right now.
J_L
October 1, 2019 at 6:53 pm #1143886Hi J_L,
You’re welcome, glad that we could help :)
Best regards,
NikkoOctober 1, 2019 at 8:10 pm #1143912Hi Nikko,
This doesn’t work as I’m trying to have the same effect that the blocks here So I need the text to appear as an overlay only when I mouse over the background image.
Thanks,
J_LOctober 3, 2019 at 7:04 am #1144364Hi J_L,
I see, I think it will still do but will need to add further steps.
1. In Enfold > Layout Builder > Custom CSS classes input field, set to Show and allow to edit classes.
2. Edit the page, edit those 1/3 element then in Custom Css Class field put my-grid. (do this on other 1/3 elements, so they’ll have the same classes)
3. Edit the text block inside the 1/3 element (the block that needs to be hidden and only shown on mouse hover), in the Custom Css Class field put my-grid-links. (do this in other text block inside the 1/3 element).
4. Go to Enfold > General Styling > Quick CSS, then add this css code:#top .my-grid .my-grid-links { opacity: 0; -webkit-transition: all 0.3s ease-out; transition: all 0.3s ease-out; } #top .my-grid:hover .my-grid-links { opacity: 1; }
Let us know if this helps.
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.