JSFiddle - React, Tailwind, and code Playground
HTML
<div id="sidebar" style="height:600px; width:100px; right:-75px; position:absolute; background-color:black;">
//sidebar styling
</div>
JavaScript
$('#sidebar').hover(function() {
$('#sidebar').stop().animate({'right' : '0px'}, 250);
}, function() {
$('#sidebar').stop().animate({'right' : '-75px'}, 350);
});