JSFiddle - React, Tailwind, and code Playground

by GerĂłnimo Garcia Sgritta

HTML

<!-- Wrapper -->
<div class="wrap">

    <ul>
        <!-- Sample Li -->
        <li id="virtual" class="mainchoices">
            <p class="title">Virtual Training</p>
            <p class="punchline">Instructor led, anywhere, anytime</p>
            <span class="virimg genimg"></span>
            <ul class="bullets">
                <li>Get Expert Training on Demand</li>
                <li>Attend Scheduled 'Webinars'</li>
                <li>Save on Training Time &amp; Costs</li>
                <li>Receive Materials for Reference</li>
            </ul>
        </li>
        
        <li id="regional" class="mainchoices">
        </li>
        
        <li id="onsite" class="mainchoices">
        </li>
    </ul>
</div>

CSS

/* Global */
*{
    margin:0;
    padding:0;
    -webkit-transition-property: color, background, opacity, width, height, margin-top, text-shadow;
    -webkit-transition-duration: 0.5s;
    -webkit-transiting-timing-function: ease;
    font-family:sans-serif;
}

/* Wrapper */
.wrap{
    width:900px;
    height:400px;
    margin: 50px auto auto auto;
}
/* Floating Box*/
.mainchoices{
    float:left;
    height:380px;
    width:280px;
    background: -webkit-linear-gradient(top, rgba(254,255,255,1) 0%,rgba(221,241,249,1) 38%,rgba(211,229,237,1) 100%);
    opacity:0.5;
    border-radius: 12px;
    margin-left:10px;    
    list-style:none;
    color:black;
    text-shadow:0 0 1px rgba(0,0,0,1);
}

/* Hover state */
.mainchoices:hover{
    opacity:1;
    width:300px;
    height:400px;
    background: -webkit-linear-gradient(top, rgba(170,225,247,1) 38%,rgba(117,199,234,1) 100%);
    margin-top:-15px;
    color:white;
    text-shadow:0 0 1px rgba(0,0,0,0);
}

/* Smart Triggering of the image height */
.mainchoices:hover .genimg{
    height:160px;
}
/* Active state */
.mainchoices:active{
    box-shadow:0 0 24px 0px #2EB3E8;
    background: -webkit-linear-gradient(top, rgba(46,179,232,1) 0%,rgba(124,210,244,1) 83%); 
}

/* Title for each li */
.title{
    font-size:32px;
    font-weight:bold;
    width:100%;
    text-align:center;
    padding-top:10px;
}

/* Punchline for each li */
.punchline{
    text-align:center;
}

/* Bullet points */
.bullets{
    padding-left:30px;
    padding-top:10px;
    line-height:30px;
    font-size:16px;
    font-weight:bold;
}

/* General styling for image contrainer */
.genimg{
    height:0px;
    width:100%;
    display:block;
    margin-top:10px;
    background:yellow;
}