Struggling to target the next element within a menu is proving to be quite the challenge.
Imagine this scenario:
<ul>
<li class="active">
<a href=""><i class=""></i></a>
</li>
<li>
<a href=""><i class=""></i></a>
</li>
</ul>
The objective is to apply an animation to every "i" or element following the currently active li.
In addition, there is a need to alter its color, or include a blinking effect to make it more visible for users who may not easily spot the icon.
Attempts Made:
I've experimented with +, ~ in CSS, as well as .next(), nextAll() functions in jQuery...
UPDATE: The solutions provided below prove effective with the basic structure presented here. Thank you for your assistance.
However, when dealing with bootstrap 4 tabs, where the active class is within the anchor tag, the structure changes to:
<ul>
<li>
<a href="" class="active"><i class=""></i></a>
</li>
<li>
<a href=""><i class=""></i></a>
</li>
</ul>
With this new setup, all attempts to modify the color or animate the elements after the active class (the second li) have been unsuccessful.