JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<h1>First Header</h1>
<h2>Second Header</h1>
</body>
JavaScript
$.fn.zoomyupdate = function (newtext) {
this.text(newtext).animate({
"zoom": "200%",
"color": "#f00"
}, "250ms");
}
$("h1").text("Updated the h1s").animate({
"zoom": "200%"
}, "250ms");
$("h2").zoomyupdate("Using my fancy function");