How can I make individual divs show/hide on hover for each accreditation image in Webflow using legacy interactions?

TL;DR
  • Add a div block for each accreditation image to show/hide on hover.
  • Use legacy interactions; set "Mouse Over" triggers for images.
  • Set the div's initial appearance to hidden with 0% opacity or display none.
  • Configure hover in action to show the div with 100% opacity.
  • Configure hover out action to hide the div with 0% opacity or display none.
  • Repeat for each image-div pair to ensure independent animations.

To animate individual divs to show/hide on hover for each accreditation image in Webflow using legacy interactions, you'll need to set up interactions for each image-div pair.

1. Set Up Your Elements

  • Add an Image: Ensure each accreditation image is properly placed on your page.
  • Add a Div: For each image, have a separate div block you want to show/hide upon hover.

2. Apply Legacy Interaction

  • Select the Image: Click on the first accreditation image that you want to make interactive.
  • Add a Legacy Interaction: In the Interactions panel, choose to add a legacy interaction. Select “Trigger” > “Mouse Over”.

3. Set Initial Appearance

  • Initial Appearance: Ensure the div is initially set to hidden by interacting with the initial appearance settings. Set the opacity to 0% or adjust the display setting to none.

4. Configure Hover In Interaction

  • Add Hover In Action: In the interaction settings, create an action for when the mouse hovers in. Set your div to display (for example, change display to block) and adjust opacity to 100% if you’ve set it to 0 initially.

5. Configure Hover Out Interaction

  • Add Hover Out Action: Create a separate action for when the mouse hovers out. Reverse the settings to revert the div back to hidden (display none and set opacity back to 0%).

6. Repeat for Each Set

  • Repeat Process: Repeat steps 2 to 5 for each accreditation image and respective div you need to animate. Make sure each interaction is uniquely tied to each image-div pair to ensure independent animations.

Summary

To achieve show/hide on hover for your accreditation images using legacy interactions in Webflow, apply a mouse over legacy interaction to each image, configure the initial state of the div, and then set the appropriate settings for hover in and out actions. Repeat the process for each image-div combination.

Rate this answer

Other Webflow Questions