JSFiddle - React, Tailwind, and code Playground

by paras rochiya

HTML

<section class="tabs">
    <input id="tab-1" type="radio" name="radio-set" class="tab-selector-1" checked="checked" />
    <label for="tab-1" class="tab-label-1">Premium</label>
     
    <input id="tab-2" type="radio" name="radio-set" class="tab-selector-2" />
    <label for="tab-2" class="tab-label-2">Free</label>
    
        <div class="purchase-container content purchase-standard-container clearfix" id="purchase-standard" style="display: block;">
            
            <div class="purchase-container-price">$29<span>One time payment &amp; Lifetime access</span></div>
            <h3>What you get</h3>
            
            <div class="clearfix">
                <ul>
                    <li><strong>Specular </strong> Standard License</li>
                    <li>Some Content</li>
                    <li>Some Content</li>
                   <li>Some Content</li>
                    <li>Some Content</li>
                </ul>
            </div>
            
            <div class="purchase-container-buy">
                <a href="#">Buy Now</a>
            </div>
        </div>

CSS

section.tabs {
    position: relative;
    margin: 40px auto;
    width: 300px;
}
 
.tabs input {
    position: absolute;
    z-index: 1000;
    width: 100px;
    height: 40px;
    left: 0px;
    top: 0px;
    opacity: 0;
    cursor: pointer;
}
.tabs input#tab-2{
    left: 120px;
}
section.tabs label {
    background: #5ba4a4;
    font-size: 15px;
    line-height: 40px;
    height: 40px;
    position: relative;
    padding: 0 20px;
    float: left;
    display: block;
    width: 80px;
    color: #385c5b;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.3);
    border-radius: 3px 3px 0 0;
    box-shadow: 2px 0 2px rgba(0,0,0,0.1), -2px 0 2px rgba(0,0,0,0.1);
}
 
.tabs input:hover + label {
    background: #5ba4a4;
}
 
.tabs label:first-of-type {
    z-index: 4;
    box-shadow: 2px 0 2px rgba(0,0,0,0.1);
}
 
.tab-label-2 {
    z-index: 3;
}
.tabs label:after {
    content: '';
    background: #fff;
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    display: block;
}
.tabs input:checked + label {
    background: #fff;
    z-index: 6;
}

.content {
    background: #fff;
    position: relative;
    width: 100%;
    height: 370px;
    z-index: 5;
    box-shadow: 0 -2px 3px -2px rgba(0,0,0,0.2), 0 2px 2px rgba(0,0,0,0.1);
    border-radius: 0 3px 3px 3px;
}
 
.content div {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 40px;
    z-index: 1;
    opacity: 0;
    transition: all linear 0.1s;
}
 
.content div h2,
.content div h3{
    color: #398080;
}
.purchase-container {
    border: 1px solid #dcdcdc;
    background: #fff;
    padding: 15px;
}


.purchase-container-price {
    font-family: 'Roboto Slab', sans-serif;
    font-weight: 300;
    font-size: 60px;
    text-align: center;
    color: #4e4e4e;
    margin-bottom: 30px;
}

.purchase-container-price span {
    font-family: 'Roboto', sans-serif;
    color:...