00:00
Buy Me a Beer
Animations

Child Hover State

Easily add custom styles to text, buttons, links and more when hovering over it's parent element.

Hover over me
.button_child.vdx-hover

How to change a css style of a child with hovering the parent.

Firstly, make sure you have the VisualDX script before your </body>. Checkout the Quick Start for how to do this.

Add Child Hover State Attribute

Copy this attribute:

vdx-child-hover

Paste the attribute to the custom attributes Name of a parent element. e.g. a button.

You can so this with a Link Block, Div, or  Custom Element.

Button
Text Block
Button
Style
Settings
Interactions
Link Settings
Custom Attributes
Name
vdx-child-hover
Value

Add Child Hover State Attribute

Copy this combo class:

vdx--hover

Paste the combo class into the Style Selector of the styled child element(s). e.g. the button text

You can add the combo class all child elements nested in parent.

Style the combo class vdx--hover.

These styles will become visible when the use hovers over the parent element once the website is published.  

Button
Text Block
Text Block
Style
Settings
Interactions
Style Selector
Text Block
vdx--hover

Remove Combo Class and Publish

Remove combo class vdx--hover from the style selector and publish

7
.button_child.vdx-hover

Sponsor the Magic and
Buy Me a Beer

Ailín Tobin
Ireland

VisualDX is a free JavaScript library made for Webflow nerds like yourself. No ads, no paywalls—just pure, unfiltered JavaScript magic to supercharge your builds. If it’s saving you time, making your development easier, or just making you feel like a wizard in the Webflow Designer, consider slinging a virtual coffee my way.

Think of it like buying me a pint for keeping your Webflow spells flowing.

You can support it here.

Cheers, legend!

This is a method based on community and soundness. If you can't afford it, don't worry... One of your fellow Webflow nerds has already helped you out by donating.