JSFiddle - React, Tailwind, and code Playground
HTML
<div id="exam" class="exam">
Exam 1
<input type="button" id="copy" value="Make Copy" onclick="makeCopy()" />
<input type="button" id="array" value="Get Array" onclick="makeArray()" />
<input type="checkbox" id="moving" >Making Them Move!!</input>
</div>
JavaScript
$("#moving").click(function() {
$("#exam").stop().css("marginLeft", "0").animate({
marginLeft: "+=500"
}, 1000, function() {
display("");
}
);
});