JSFiddle - React, Tailwind, and code Playground
HTML
<script src="<link href='https://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>"></script>
<script src="<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">"></script>
<script src="<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>"></script>
<script src="<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js">"></script>
<a href='#'>
<div id='buttondiv'>
<div id='triangle2'></div>
<div id='triangle'></div>
<h1>Click</h1>
</div>
</a>
CSS
/*body {
background-color:gray;
}*/
#buttondiv {
background: blue;
text-align:center;
padding:0px;
color:white;
width:200px;
height:70px;
font-size:25px;
position:absolute;
top:50%;
left:50%;
margin-top:-45px;
margin-left:-100px;
border:none;
font-family: 'Lobster', cursive;
}
#triangle {
width: 0;
height: 0;
border-style: solid;
border-width: 35px 0 35px 50px;
border-color: transparent transparent transparent white;
position:absolute;
display:none;
}
h1 {
color:white;
position:relative;
text-align:center;
bottom:28px;
text-shadow:0px 0px 5px red;
}
#triangle2 {
width: 0;
height: 0;
border-style: solid;
border-width: 35px 0 35px 50px;
border-color: transparent transparent transparent blue;
position:absolute;
left:200px;
display:none;
}
JavaScript
$(document).ready(function(){
$('#buttondiv').click(function(){
$('#triangle').toggle('slide', 'slow');
$('#triangle2').toggle('slide', 'slow');
})
});