JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://github.com/tkyk/jquery-history-plugin/raw/master/jquery.history.js"></script>
<div id="thing-to-transition">
    Click <a href="#thing-to-transition" onClick="jQuery.history.load('thing-to-transition')">this</a> to transition the enclosing div.  Notice how the fragment (the part after the hash) matches up to the id of the div.
</div>

CSS

#thing-to-transition
{
    width:300px;
    background-color:white;
    border: solid black 1px;
    margin:15px;
    padding:15px;
    
    -webkit-transition: margin-left 1s linear;
}

#thing-to-transition:target
{
    margin-left: 200px;
}

JavaScript

jQuery(document).ready(function($){
    $.history.init(function(hash){
        if(hash == "") {

        } else {
            
        }
    },
    { unescape: ",/" });
});