On my website, I describe my product using an unordered list. And too many products. Now I want to add some animation to the product button, which is in the second last position. I created a class in my css file that contains my animation, and I want to add this animation to this second last one li.
I know that I can manually add lianother class to this , but the problem is that there is 713 unordered list or description of the product.
So, is it possible to add a class to all of these second last liat a time.
My product description looks like.
<ul class="product_details">
<li>Text</li>
<li>Text</li>
<li>Text</li>
<li>Text</li>
<li>Text</li>
<li>Text</li>
<li>Text</li>
<li>Text</li>
<li>Text</li>
<li>Text</li>
<li>Text</li>
<li>Text</li>
<li>Text</li>
<li>Text</li>
<li>Text</li>
<li class="HERE_I_WANT_TO_ADD_THAT_CLASS">Button</li>
<li>Text</li>
</ul>
I have an internet search but have not received a solution.
user3904617