I have a checkmark in a circle and when you hover over it I want the checkmark as well as the background to be changed.
Here is the fiddle
However when I go over the actual checkmark stem
and kick
it doesn't change anymore.
I did try this
#checkmark_stem:hover~#checkmark_kick {
background-color:white;
-webkit-transition: color 300ms, background 500ms, border-color 700ms;
transition: color 600ms, background 1000ms, border-color 1400ms;
}
#checkmark_kick:hover~#checkmark_stem {
background-color:white;
-webkit-transition: color 300ms, background 500ms, border-color 700ms;
transition: color 600ms, background 1000ms, border-color 1400ms;
}
#checkmark_stem:hover~#checkmark_circle {
background:#526F35;
border-color:#526F35;
color:transparent;
-webkit-transition: color 300ms, background 500ms, border-color 700ms;
transition: color 600ms, background 1000ms, border-color 1400ms;
}
But for some reason it only changes the kick but not the circle and it also seems a bit too complicated and too many lines of code. Is there an easy way to do this in css? I know in JS it would be pretty simple.
Thanks!