JSFiddle - React, Tailwind, and code Playground

HTML

<head>
    <title>slide demo</title>
    <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
    <style>
        #toggle {
            width: 300px;
            height:300px;
            background: #ccc;
            -webkit-transition: all 500ms ease;
            -moz-transition: all 500ms ease;
            -ms-transition: all 500ms ease;
            -o-transition: all 500ms ease;
            transition: all 500ms ease;
        }
        .toggle {
            margin-left: -250px
        }
    </style>
    <script src="//code.jquery.com/jquery-1.10.2.js"></script>
    <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
</head>
<body>
    <p>Click anywhere to toggle the box.</p>
    <div id="toggle"></div>
    <script>
        $(document).click(function() {
            var $toggle = $("#toggle");
            if ($toggle.hasClass('toggle')) $toggle.removeClass('toggle');
            else $toggle.addClass('toggle');
        });
    </script>
</body>