JSFiddle - React, Tailwind, and code Playground

HTML

<h1 id="title">Hello</h1>

JavaScript

$(document).ready(function () {
  $("#homebutton,#title").click(function () {
    $("#title").animate({
      "font-size": "50%"
    }, 2000);
  });
});