JSFiddle - React, Tailwind, and code Playground
by chaddly
HTML
<div class="flip"><a href="#">GIS - Civil Emphasis | <small>(12 credit hours)</small> <img src="img/plus.png" style="float: right;" /></a></div>
<div class="panel">
<ul>
<li>GIS-1100 : Introduction to GIS (3 credit hours) - Fall, Spring</li>
<li>GIS-1110 : Georeferencing and Mapping (3 credit hours) - Summer</li>
<li>GIS-1120 : CAD for GIS (3 credit hours) - Fall</li>
<li>GIS-1130 : Surveying for GIS (3 credit hours) - Spring</li>
<ul>
</div>
<div class="flip"><a href="#">GIS - Databases | <small>(13 credit hours)</small> <img src="img/plus.png" style="float: right;" /></a></div>
<div class="panel">
<ul>
<li>GIS-1100 : Introduction to GIS (3 credit hours) - Fall, Spring</li>
<li>GIS-1110 : Georeferencing and Mapping (3 credit hours) - Summer</li>
<li>GIS-1120 : CAD for GIS (3 credit hours) - Fall</li>
<li>GIS-1130 : Surveying for GIS (3 credit hours) - Spring</li>
<ul>
</div>
<div class="flip"><a href="#">GIS - Programming | <small>(12 credit hours)</small> <img src="img/plus.png" style="float: right;" /></a></div>
<div class="panel">
<ul>
<li>GIS-1100 : Introduction to GIS (3 credit hours) - Fall, Spring</li>
<li>GIS-1110 : Georeferencing and Mapping (3 credit hours) - Summer</li>
<li>GIS-1120 : CAD for GIS (3 credit hours) - Fall</li>
<li>GIS-1130 : Surveying for GIS (3 credit hours) - Spring</li>
<ul>
</div>
<h3>Oil and Gas Certificates</h3>
<div class="flip"><a href="#">Accounting | <small>(12 credit...
CSS
.panel, .flip {
padding:5px;
text-align:left;
background-color:#eee;
border:solid 1px #c3c3c3;
}
.panel {
padding:10px;
display:none;
}
.type{
padding: 20px 40px;
width: 450px;
}
JavaScript
$(document).ready(function () {
$(".flip").click(function () {
var panel = $(this).next('.panel');
$('.panel').not(panel).slideUp('slow');
$(this).next('.panel').slideToggle("slow");
});
});