JSFiddle - React, Tailwind, and code Playground

HTML

<body>
    <div id="front" class="front">
        <a id="showLink" href="javascript:void(0);">front</a>
    </div>
    <div id="back" class="back">
        <a href="">back</a>
    </div>
    <div id="linkbar">
        <a href="">test</a>
        <a href="">test</a>
        <a href="">test</a>
    </div>
</body>

CSS

.front{
	width: 400px;
	display: block;
	border: 2px solid #000000;
	text-align: center;
	position: absolute;
	margin-top: 20px;
	z-index: 10;
	background-color: white;
}

.back{
	display: none;
	width: 400px;
	border: 2px solid #000000;
	text-align: center;
	position: absolute;
	z-index: 1;
	margin-top: 20px;
	background-color: white;
}

JavaScript

$("#showLink").click( function() {
   if(!$("#back").is(":visible")){
		$("#back").show();
		
		$("#front").animate({
			'marginLeft': "+=30px"
		});
		$("#front").animate({
			'marginTop': "+=20px"
		});
	}
	
	return true;
});