JSFiddle - React, Tailwind, and code Playground

by Paul

HTML

<ul>
    <li>[content here]</li>
    <li>[content here]</li>
    <li>[content here]</li>
</ul>

JavaScript

var total = $('ul').size();
var i = 1;
$('li').slideUp({
    complete: function () {
        if (i == total) alert('done');
        i = 1 + 1;
    }
});