How can I create a hover transition in Webflow where an image flips over to reveal nested links on the backside?

Published on
September 22, 2023

To create a hover transition in Webflow where an image flips over to reveal nested links on the backside, you can use the interactions feature along with some custom CSS classes. Follow the steps below:

  1. Design your flip card structure:
  • Start by adding a "Div Block" element to your page where you want to display the flip card.
  • Inside the "Div Block," add an "Image" element to display the front side of the card.
  • Next, add another "Div Block" element inside the first one. This will be the container for the back side of the card.
  • Inside the second "Div Block," add your nested links or any other elements you want to reveal on the back side.
  1. Create custom CSS classes:
  • Assign a class name to the first "Div Block" (e.g., "flip-card").
  • Assign a class name to the second "Div Block" (e.g., "flip-card-back").
  • Use CSS to hide the back side initially by adding the following custom code to your project:
    ```
    .flip-card-back {
    transform: rotateY(180deg);
    }
    ```
  1. Create the hover interaction:
  • Select the "Interactions" tab on the right panel in the Webflow Designer.
  • Click on the "+" button to create a new interaction.
  • Choose the "Hover" trigger and set it to affect the class "flip-card".
  • Add a "Transform" action to the interaction and set it to rotateY(180deg) over a duration of your choice (e.g., 0.6s).
  • Add another "Transform" action to the interaction and set it to rotateY(0deg) to reset the card when the hover is removed.
  1. Preview and customize:
  • Preview the interaction by hovering over the card in the Designer or using the preview button.
  • Adjust the timing and easing settings in the interaction panel to fine-tune the animation.
  • Customize the design and layout of the flip card and the backside content to suit your needs.

By following these steps, you will be able to create a hover transition in Webflow where an image flips over to reveal nested links on the backside.

Additional questions:

  1. How can I add a hover effect in Webflow?
  2. Can I create a card flip animation in Webflow?
  3. What are some examples of interactions I can create in Webflow?