JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.jquery.com/jquery-1.7.2.js"></script>
<script src="http://code.jquery.com/ui/1.8.20/jquery-ui.js"></script>
<input id="elem" type="file">
JavaScript
$("input").change(function() {
$(this).hide("slide", {
direction: "left"
});
});