JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<input type="button" value="啟用" class="start">
<div class="box"></div>
</body>
CSS
.box{
width: 200px;
height: 200px;
background: #000;
}
JavaScript
$(document).ready(function() {
$('.start').click(function(event) {
$('.box').slideUp(3000).slideDown(2000);
});
});