I'm currently working on creating a scale using list items, and I want the height of each item to increase incrementally.
So far, I haven't been able to find a solution other than adding a class to each item. Here's a fiddle demonstrating the desired outcome: https://jsfiddle.net/bLj6eLe7/
The code snippet below showcases the exact results I am aiming for. Ideally, I'd like to achieve this using CSS, but I'm open to implementing JavaScript if necessary.
<ul>
<li style="height: 10px;">1</li>
<li style="height: 20px;">2</li>
<li style="height: 30px;">3</li>
<li style="height: 40px;">4</li>
<li style="height: 50px;">5</li>
<li style="height: 60px;">6</li>
<li style="height: 70px;">7</li>
<li style="height: 80px;">8</li>
</ul>