JSFiddle - React, Tailwind, and code Playground
by Alex Stanese
HTML
<div data-role="page" id="page1">
<div data-role="header">
<h1>My page</h1>
</div>
<div role="main" class="ui-content">
<button id="button">Pulsate</button>
</div>
</div>
JavaScript
$("#button").animate({ opacity: 0 }, 500, function() { $("#button").animate({ opacity: 1 }, 500, pulsate); });