Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Navigation Boxes with effect

  • How can I make such Navigation Boxes like on this website? Three side by side and with this effect when you hover over an image with the mouse.

  • Hi there.

    It’s possible with GenerateBlocks and GenerateBlocks Pro.

    This is essentially a 3X3 container grid. (Grid Template Columns: repeat(3, minmax(0, 1fr)) that goes to 1fr on mobile). For the image hover effect, you do the following:

    1. Insert a container and set position to relative. Set its tag to be a link. (a tag) and set you link destination in there. Set the background image to #FFF. Set OVERFLOW-X and OVERFLOW-Y values to hidden.
    2. Insert image inside the container, set Display to Block. Create a TRANSITION effect and set duration to 0.3s.
    3. Below, insert a shape block with the magnifying glass, set the color to a dark one and OPACITY to 0. Set position to Absolute, with Inset: 50% for Top and Left. Add a Transform effect with Translate effect type and set Translate X and Translate Y to –50%. This will essential center the magnifying glass horizontally and vertically in relation with the image.

    Center an absolute positioned element

    4. Select the initial container and create a new selector, name it &:hover img. Set the opacity to 10% or similar.

    New hover image selector

    Also, create a Transform effect, with the Scale type and a SCALE value of 1.1.

    Scale effect

    5. Select the initial container, create a new selector and name it .gb-shape. Create a TRANSITION effect and set duration to 0.3s.

    Selector for teh shape block

    6. Again, select the initial container, create a new selector and name it &:hover .gb-shape.

    Selector for the shape block hover

    Set OPACITY to 100%.

    That should create the effect you want.

  • Thank you for your instructions. Unfortunately, it sounds very complicated to me and I got stuck on the first point.

    Where do I set the size of the grid boxes, where do I Put this “repeat(3, minmax(0, 1fr))” and how do I get the text under the images?

    Edit:
    I have found where to set the “repeat(3, minmax(0, 1fr))”, it was on the other tab.

    Should the text under the image also be placed in a container?

  • There are going to be containers for all grid items. The instructions I provided were only for the image hover area. That is going inside the parent containers of each grid. So each grid item will have:

    Parent container (probably with a grey background to emulate your example)
    — Container for image (instructions I provided)
    — Title text
    — Description text
    — Button (Details)

    Hope that’s clearer.

  • Do you mean:

    Parent container
    — Container for image
    — Container for Title text
    — Container for Description text
    — Container for Button

    ?

  • Title, description and button can go below the Container for image. They don’t need to be inside a container.

  • okay, thanks, I will try this.

  • List view will look something like this.

    List view

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.