JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head></head>
<body>
This text should disappear.
</body>
</html>
JavaScript
$(document.body).animate({ opacity: [0, "swing"] })
<!DOCTYPE html>
<html>
<head></head>
<body>
This text should disappear.
</body>
</html>
$(document.body).animate({ opacity: [0, "swing"] })