Is there an easier way to create a hover effect that shows an inverted, black & white version of an image in the same position on hover in Webflow?

Published on
September 22, 2023

Yes, there is an easier way to create a hover effect that shows an inverted, black & white version of an image in the same position on hover in Webflow. Here's how you can achieve this effect:

  1. First, add an image element to your Webflow project by dragging and dropping it onto the canvas or using the Add Elements panel.

  2. Upload your desired image to the image element by either selecting it from your computer or using an image URL.

  3. Once the image is added, give it a class name by selecting the image element and navigating to the Styles panel on the right-hand side. In the class field, enter a unique class name, such as "invert-hover-image."

  4. Now, create a new custom CSS class by navigating to the Style Manager and clicking on the "+" button next to the "All Selector" field. In the class field, enter a unique class name, such as "invert-effect."

  5. With the "invert-effect" class selected, click the "+" button next to the Selector field and choose the class you assigned to the image element ("invert-hover-image" in this example).

  6. Scroll down to the "Mix Blend Mode" section in the Styles panel for the "invert-effect" class. Select the "Difference" blend mode from the dropdown menu. This blend mode will invert the colors of the image.

  7. To apply the hover effect, click on the "+" button next to the Selector field under the "invert-effect" class. Choose the "Hover" option from the dropdown menu.

  8. With the hover state selected, go back to the "Mix Blend Mode" section and change the blend mode to "Normal." This will revert the image to its original state on hover.

  9. Optionally, you can add additional styles to the hover state to further enhance the effect, such as changing opacity or applying a transition.

  10. Preview your site to see the hover effect in action. On hover, the image should invert to a black & white version while remaining in the same position.

By following these steps, you can easily create a hover effect that shows an inverted, black & white version of an image in the same position on hover in Webflow.

Additional Questions:

  1. How do I create hover effects in Webflow?
  2. Can I apply multiple hover effects to an element in Webflow?
  3. What other blend modes are available in Webflow for creating unique visual effects?