JSFiddle - React, Tailwind, and code Playground

by SzymonDziewonski

HTML

<div>
    <ul>
        <li>This is a test.</li>
    </ul>
</div>

CSS

div {
    width:200px;
    background: #FF0000;
    color: #FFFFFF;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}
div li:not(:first-child){
   display: none;
}

JavaScript

$(function(){
    $("body").click(function(e){
        e.preventDefault();
        $("ul").append("<li>Another row</li>");
        $("ul li").slideDown();
    });
    
});