JSFiddle - React, Tailwind, and code Playground
HTML
<div class="wrap">
<div class="modal"></div>
<div class="header">
<a href="#">режим работы</a>
</div>
</div>
CSS
.wrap {
width:500px;
margin: 0 auto;
height:400px;
background:red;
position:relative;
}
.header {
background:green;
height:50px;
}
.modal {
background:blue;
height:200px;
width:180px;
position:absolute;
right:10px;
top:0;
-webkit-transition: top 0.5s;
-moz-transition: top 0.5s;
-o-transition: top 0.5s;
transition: top 0.5s
}
.modal.active {
top:10px;
}
JavaScript
$('a').on('click', function(e){
e.preventDefault();
$('.modal').stop(true, true).slideToggle(500);
});