Open this example in the interactive library
Source code
<style>
.demo:hover .tile {
background-color: #99f6e4;
}
</style>
<div class="demo">Hover the panel <span class="tile">Child</span></div>
Change a child when hovering its parent with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo:hover .tile {
background-color: #99f6e4;
}
</style>
<div class="demo">Hover the panel <span class="tile">Child</span></div>