How can I make the background image of a link block in Webflow remain visible after hovering over it?

Published on
September 22, 2023

To make the background image of a link block in Webflow remain visible after hovering over it, you can use a combination of CSS and Webflow interactions. Here's a step-by-step guide to achieving this:

  1. Create a link block: Start by adding a link block to your Webflow project. Link blocks act as the container for your link and allow you to apply interactions.

  2. Add a background image: Within the link block, add a div block and set the background image using the background-image property in the Style panel. You can upload your image or use a URL to an external image.

  3. Adjust the div block position: To make the div block fill the entire link block, give it a width and height of 100% and set its position to relative.

  4. Create the hover effect: On the div block, add a class (or use the existing default class) and go to the Hover state in the Style panel. Here you can apply any additional style changes, such as adjusting opacity or color to create a hover effect.

  5. Create an interaction: To ensure the background image remains visible when hovering, you can create an interaction. Go to the Interactions panel and create a new interaction by selecting the Plus icon. Choose the hover trigger and select the element you want to apply the interaction to (in this case, the link block).

  6. Set the initial state: In the interaction panel, set the initial state by adjusting the opacity of the background image to the desired value (e.g., 1 for fully visible). You can find the opacity setting in the Style panel under Background.

  7. Create the hover animation: To make the background image remain visible on hover, create a hover animation in the interaction panel. Adjust the opacity of the background image to the same value as the initial state. This keeps the image fully visible when hovering.

  8. Test and publish: Preview your project to see the hover effect in action. If everything looks good, publish your site to make it live.

By following these steps, you can ensure that the background image of a link block remains visible even after hovering over it.

Additional Questions:

  1. How can I create a hover effect on a link block in Webflow?
  2. Can I use custom CSS in Webflow to style link blocks?
  3. What are some other ways to make a background image more prominent in Webflow?