JSFiddle - React, Tailwind, and code Playground
HTML
<div><p>Some content</p></div>
<div id="container"><p class='destroy'>Some content that will go away</p></div>
<div><p>Some content</p></div>
CSS
#container {color:white;background-color:blue;height:20px}
JavaScript
jQuery('.destroy').click(function(){
jQuery(this).fadeOut('slow',function(){
jQuery('#container').slideUp();
})
})