JSFiddle - React, Tailwind, and code Playground

by Amens

HTML

<div class="dupsko"><p>Created and maintained by Piotr and Oskar.

Hosted by DigitalOcean.

Special thanks to MooTools community.

License

All code belongs to the poster and no license is enforced.

    JSFiddle or its authors are not responsible or liable for any loss or damage of any kind during the usage of provided code.</p><span id="cipsko">KUPSKO</span></div>

CSS

.dupsko{position:relative;left:-20px;transition:all 500ms linear;}
#cipsko{cursor:pointer;}

JavaScript

$('#cipsko').click(
    function(){
        var penis=$('.dupsko').css('left')
        if(penis=="-20px"){
        $('.dupsko').css('left','+=20');
        }
        else
        {
            $('.dupsko').css('left','-=20');
        }
        $(this).html($('.dupsko').css('left'));
    });