I have a certain SVG, the contents of it is irrelevant for this question, however it is important to know that it contains the following structure:
<svg id='my-svg-id'>
...
<path d="M138.331827,110.420944 ... 110.420944" id="Fill-80" fill="#07032E" />
<path d="M139.331827,110.420944 ... 110.420944" id="Fill-80" fill="#07032E" />
<path d="M140.331827,110.420944 ... 110.420944" id="Fill-80" fill="#07032E" />
<path d="M141.331827,110.420944 ... 110.420944" id="Fill-80" fill="#07032E" />
...
</svg>
So it comes down to an svg tag, the parent, which contains several path tags, the children.
I want to animate these path's when hovered. More specific, my goal is to apply a css animation on the path element which is being hovered (:hover) and it's adjacent siblings +-5, if any.
So that would mean the hovered element itself + a maximum of 10 other elements would get targeted and therefore animated.
I've read some info regarding adjacent sibling combination, but can't seem to figure it out so far.
What I did manage to do however is target the hovered element and it's nearest sibling like this:
path:hover + path {
animation: my-animation 0.5s linear infinite both;
}
Please provide answers or comment with any useful information. Although it would most welcome, I do not expect you to provide a fully working code example. Any useful information, in any form, is much appreciated.