JSFiddle - React, Tailwind, and code Playground
by Anoop Joshi
HTML
<input type="button" class="myButton" value="slide"/>
<div >This is a test div. This wil be slide from left to right</div>
JavaScript
$("div").hide();
$("input").click(function () {
var effect = 'slide';
var options = { direction: "right" };
var duration = 500;
$('div').toggle(effect, options, duration);
});