JSFiddle - React, Tailwind, and code Playground

HTML

<h1>Test of sliding stuff</h1>
<div id="slideContainer">
    <div>Contact No: 555-666-7777</div>
    <div>Email: me@me.com</div>
    <div>Test: whatever</div>
    <div>Add as many extra lines here as you like</div>
</div>
<div>Other page content here.</div>

JavaScript

$(function() {
    $("#slideContainer").css({
        "height" :$("#slideContainer div:first").css("height"),
        "overflow" : "hidden"
    });
    
    function slide() {
        $("#slideContainer div:first").slideUp(800, function() {
            var $this = $(this);
            $this.parent().append(this);
            $this.show();
            slide();
        });
    }
    slide();  
});