JSFiddle - React, Tailwind, and code Playground

HTML

<div id="slideout">
    <div id="slidecontent">
        Yar, there be dragonns herre!
    </div>
    <div id="containclickme">
    <div id="clickme">
        </div></div>
</div>

CSS

#slideout {
    background: #666;
    position: relative;
    width: 300px;
    height: 80px;
    top: 45%;
    left:-280px;
}
   
#containclickme {
background: white;
    float:right;
    height: 80px;
    width:20px;
}

#clickme {
    float: right;
    height: 20px;
    width: 20px;
    background: #ff0000;
}

#slidecontent {
    float:left;
}

JavaScript

$(function () {
    $("#clickme").toggle(function () {
        $(this).parent().parent().animate({left:'0px'}, {queue: false, duration: 500});
    }, function () {
        $(this).parent().parent().animate({left:'-280px'}, {queue: false, duration: 500});
    });
});