JSFiddle - React, Tailwind, and code Playground

HTML

<button id="clickMe" type="button">클릭</button>

<div id="book"></div>

CSS

#book{width:100px;height:150px;background:blue}

JavaScript

$('#clickMe').on('click', function(){
  $('#book').animate({
    opacity: 0.25,
    left: '+=50',
    height: 'toggle'
  }, 5000, function(){
    console.log('애니메이션 완료')
  })
});