JSFiddle - React, Tailwind, and code Playground

by dmethvin

HTML

<a href="#">click me to toggle the right div's "right"</a>
<div id="test"></div>

CSS

div {
            height: 300px;
            width: 200px;
            background-color: aqua;
            right: 300px;
            bottom: 100px;
            position: absolute;
        }

JavaScript

// #5337

$('a').click(function() {
    $('#test').animate({right: 'toggle'}, 3000);
    return false;
});