Reveal elements on hover
Use a hover interaction to reveal child elements when you hover over a parent element.
We’re transitioning to a new UI, and are in the process of updating our Webflow University content.
Use a hover interaction to reveal elements on hover.
In this lesson:
Build an animation to hover in
- Select your Link Block (to make it the trigger)
- In the Interactions panel, click the plus sign next to Element Trigger and choose Mouse Hover from the dropdown menu
- Under On Hover, choose Start an Animation from the Action menu
- Click the plus sign next to Time Animations
- Name it (e.g., Fly in)
- Select the element you’d like to animate (e.g., the Heart element)
- Click the plus sign next to Timed Actions and choose Move from the dropdown menu
- Under Move, give the x-axis a value (e.g., -100)
- Next to Timing, toggle the switch to Set as initial state
- Repeat steps 6 to 9 for other elements you’d like to animate
- Interactions panel, (hit shift) and select the element(s) in the timeline
- Right-click to duplicate
- Under Move, change the x-axis back to its origin (0 pixels)
- Under Timing, change the Easing (e.g., to Ease Out)
- Reduce the Duration (e.g., to 0.2 seconds)
Build an animation to hover out
- Click out of the animation you just built
- In the Interactions panel under On Hover Out, choose Start an Animation from the Action menu
- Under Timed Animations, click the cog icon next to Fly in and choose Duplicate
- Activate Fly in 2
- Rename it (e.g., Fly out fabulously)
- Delete the duplicate animations (e.g., Heart and H3 Price) from the timeline
- Select the remaining animations in the timeline
- Next to Timing, switch off Set as initial state
- Adjust Easing and Duration as before
Apply the animation to other elements
- Select any of the Timed Actions in the timeline
- Next to Affect choose Class
- Click All elements with this class and choose Only children with this class
- Repeat 1-3 for both hover in and hover out