JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
<style>
body {
font-family: 'Trebuchet MS';
font-size: 1.5em;
background:#333;
}
.content {
width: 80%;
padding: 20px;
margin: 0 auto;
padding: 0 60px 0 0;
color: #fff;
}
.centerplease {
margin: 0 auto;
font-size: 40px;
text-align: center;
color: #fff;
font-weight: bold;
}
.question {
position: relative;
background: #910909;
margin: 0;
padding: 10px 10px 10px 50px;
display: block;
width:100%;
cursor: pointer;
border-radius: 10px;
color: #fFF;
font-weight: bold;
}
.answers {
background: #e3e3e3;
padding: 0px 15px;
margin: 5px 0;
height: 0;
overflow: hidden;
z-index: -1;
color: #333;
position: relative;
opacity: 0;
-webkit-transition: .7s ease;
-moz-transition: .7s ease;
-o-transition: .7s ease;
border-radius: 10px;
transition: .7s ease;
}
.questions:checked ~ .answers{
height: auto;
opacity: 1;
padding: 15px;
}
.plus {
position: absolute;
margin-left: 10px;
z-index: 5;
font-size: 2em;
line-height: 100%;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
-webkit-transition: .3s ease;
-moz-transition: .3s ease;
-o-transition: .3s ease;
transition: .3s ease;
}
.questions:checked ~ .plus {
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
.questions {
display: none;
}
</style>
</head>
<body>
<div class='centerplease'>
VAM WIDGETS
</div>
<br>
<div class="content">
<div>
<input type="checkbox" id="question1" name="q" class="questions">
<div class="plus">+</div>
<label for="question1" class="question">
WTF IS THIS?
</label>
<div class="answers">
Plugin that allows HTML, CSS, JAVASCRIPT widgets to be included in Virtamate scenes
</div>
</div>
<div>
<input type="checkbox" id="question2" name="q" class="questions">
<div class="plus">+</div>
<label for="question2"...