JSFiddle - React, Tailwind, and code Playground

by rodrigonery

HTML

<button id="easing_example_1">teste</button>

JavaScript

$(function () {
    var $easing = $('#easing_example_1');
    $easing.on("click", function (event) {
        $(this)
            .animate(
                { left: 200 }, {
                    duration: 'slow',
                    easing: 'easeOutBounce'
                })
            .animate(
                { left: 0 }, {
                    duration: 'slow',
                    easing: 'easeOutBounce'
                });
    });
});