What I want is like this code:
class1:hover {
background-color: #f9f9f9;
box-shadow: 1px 1px 8px #E0DADF;
class2 {
opacity:0.5;
}
}
Is this even possible or there is any other way to make it like this?
.class1:hover {
background-color: #f9f9f9;
box-shadow: 1px 1px 8px #E0DADF;
}
.class1:hover .class2 {
opacity: 0.5;
}
Or use a CSS preprocessor.
class2located withinclass1in the DOM?