To create a simple image swap on mouseover with transparent text and a colored drop shadow in Webflow, follow these key steps inside the Designer without custom code.
1. Prepare Your Elements
- Add a Div Block and set it to Relative position. This will contain and layer your images and text.
- Insert your Default Image inside the div. Set it to Absolute: Full so it fills the container.
- Insert your Hover Image on top. Also set to Absolute: Full, and set initial opacity to 0%.
- Select the Hover Image, go to the Interactions panel.
- Add a Mouse Hover interaction to the parent Div Block.
- On Mouse Hover (on): animate Hover Image opacity from 0% to 100%.
- On Mouse Hover (out): animate Hover Image opacity back from 100% to 0%.
3. Add Transparent Text with Drop Shadow
- Inside the same container (outside the images), add a Text Block.
- Set the text Color to Transparent using the color picker alpha slider.
- Apply a Text Shadow via the typography style settings:
- Set the shadow color (e.g., red, blue—any visible color),
- Adjust X and Y offset and blur for the glow/drop effect.
4. Adjust Layering Order
- Set z-index values if needed:
- Default Image = lower z-index,
- Hovered Image = higher z-index,
- Text = highest z-index.
5. Optional Styling Tips
- Add smoothing transitions on opacity (e.g., 200ms ease).
- Ensure images are the same dimensions for seamless swapping.
- Use inline-flex or flexbox in the parent to align text over the images if needed.
Summary
Build your image hover swap by layering two absolutely-positioned images and animating their opacity on hover. For transparent text with colored drop shadow, set the text color to transparent and use CSS text shadow styling in Webflow. Adjust z-index and positioning for clean layering.