Answer the question
In order to leave comments, you need to log in
Why does hover only work when hovering over an svg outline?
maybe a stupid question but google can’t answer me, tell me how to apply hover to the entire object, now it only works when hovering over the object’s outline itself, and if the cursor gets inside, then hover doesn’t work, how to solve this using css?
.item-9 {
fill: #000000;
stroke: #000000;
cursor:pointer;
}
Answer the question
In order to leave comments, you need to log in
svg is not made with the same layer?
hover must be specified on all layers or on the desired layers, and as a rule it is an id and not a class
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question