JSFiddle - React, Tailwind, and code Playground

by akhran

HTML

<div id="parent">Parent
    <div class="child">Child
    </div>
</div>

CSS

div{  
    outline:1px solid red;
		margin: 2px;
}

#parent{    
    width:200px;
    height:30px;  
}

.child{
    width:50px;
    height:200px;
    background-color:yellow;
		border: 1px solid blue;
		transform: translatey(30px);   
}

#parent:hover .child{
	background-color:blue;
}