Webflow sync, pageviews & more.
NEW

How can I make a child element display when hovering over its parent container in Webflow?

TL;DR
  • Place the child element inside the parent container and set it to hidden by default (using Display: None or Opacity: 0).
  • Use Webflow’s Interactions panel to add a hover trigger on the parent that animates the child to show on hover-in and hide on hover-out.

To show a child element on hover of its parent container in Webflow, you need to use Webflow’s interactions panel to build a hover-based trigger targeting the child.

1. Structure Your Elements

  • Make sure the child element is placed inside the parent container in the Navigator.
  • For example, create a Parent Div and place a Child Div within it.

2. Set Child Element to Hidden Initially

  • Select the Child Element.
  • In the Style panel, go to the Display dropdown and set it to Display: None.
  • Alternatively, use Opacity: 0 and Pointer Events: None if you prefer smoother transitions.

3. Create the Hover Interaction

  • Select the Parent Container.
  • Open the Interactions panel (lightning icon).
  • Click + next to Element Trigger and choose Mouse Hover.
  • Choose On Hover and click Start an Animation, then +New Timed Animation.

4. Define “Show” Animation on Hover In

  • In the animation timeline, click + Add Action, choose Hide/Show, then Set to Display: Block or Flex (depending on your layout).
  • Add an Opacity transition to smoothly fade it in:
  • Opacity: 0 → 100% over 0.3s (optional).
  • If using Pointer Events, set it to Auto now.

5. Define “Hide” Animation on Hover Out

  • Back in the Mouse Hover trigger, set the Hover Out to trigger a new animation.
  • Create a Hide Animation:
  • Add Opacity: 100% → 0% (optional fade).
  • Add an action to Hide/Show → Set Display: None.
  • If used earlier, also set Pointer Events: None.

6. Preview and Adjust

  • Use Preview mode to test the hover effect working.
  • Adjust the timing and transitions to your preference.

Summary

To reveal a child element when hovering on a parent container, use a hover trigger on the parent and build a show/hide animation targeting the child. Make sure the child is hidden by default and shown only on hover-in using Webflow interactions.

Rate this answer

Other Webflow Questions