JSFiddle - React, Tailwind, and code Playground
by Aneta Kostic
HTML
<div class="section pag pag-core-values">
<div class="spacer-inn"></div>
<div class="container">
<div class="inner">
<h2 class="red center">Our Core Values</h2>
<div class="spacer-inn"></div>
<div class="core-tab-sec">
<ul class="core-tabNav">
<li class="active"><a href="#tab1"><figure><img src="<?php bloginfo('template_url'); ?>/img/people-icon.png" alt="PEOPLE"></figure><div>PEOPLE</div></a></li>
<li><a href="#tab2"><figure><img src="<?php bloginfo('template_url'); ?>/img/passion-icon.png" alt="PASSION"></figure><div>PASSION</div></a></li>
<li><a href="#tab3"><figure><img src="<?php bloginfo('template_url'); ?>/img/performance.png" alt="PERFORMANCE"></figure><div>PERFORMANCE</div></a></li>
</ul>
<div class="core-tabCnt">
<div class="core-tabSec" id="tab-1">
<p>We believe in people. People solve problems. Our employees are passionate problem solvers always looking for long-term solutions that will benefit our clients and OneIMS. They thrive in and promote a collaborative and innovative environment, working hard to achieve corporate goals.</p>
</div>
<div class="core-tabSec" id="tab2">
<p>We could not be a marketing company without being passionate about innovation. From keeping up with industry changes to using the latest techniques, our creativity and passion drives innovation that helps our clients achieve their goals.</p>
</div>
<div class="core-tabSec" id="tab3">
<p>The success of our clients is driven by results. Results are driven by our performance. That’s why we relentlessly pursue success, strive for flawless execution, work hard and continuously look for ways to maximize our client’s return on investment. </p>
</div>
</div>
</div>
</div> <!-- close inner -->
</div> <!-- close section pag pag-core-values -->
<div class="spacer-inn"></div>
</div><div class="clearfix"></div>
CSS
/* ====== About Page ======= */
h2.red.center {text-align: center;}
.text-center h1 {color: #32AAEB;font-weight: 300;}
.pag-core-values {background-color: #e8f7ff;}
.pag-core-values .core-tab-sec {display: block;width: 100%;}
.pag-core-values .core-tab-sec .core-tabNav{ text-align: center;}
.pag-core-values .core-tab-sec .core-tabNav li {
display: inline-block;vertical-align: top;width: 30%; margin: 0 1.5%;
}
.pag-core-values .core-tab-sec .core-tabNav li a{ display: block; width: 100%; text-align: center;}
.pag-core-values .core-tab-sec .core-tabNav li figure { display: block;width: 100%; position: relative;}
.pag-core-values .core-tab-sec .core-tabNav li img {display: block;width: 100%;
transform: translateY(0px);
-webkit-transition: all 0.4s ease-in-out;
-moz-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
-ms-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;}
.pag-core-values .core-tab-sec .core-tabNav li img::after{position: absolute;width: 64%;height: 12%; left: 0;right: 0; bottom: 32px; margin: auto; z-index: 1; content: "";box-shadow: 0 50px 24px rgba(0,0,0,0.1);opacity: 0;
-webkit-transition: all 0.4s ease-in-out;
-moz-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
-ms-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;}
.core-tabNav div {display: inline-block;vertical-align: top;background-color: #fff; color: #646464; font-weight: 600; padding: 3px 8px; letter-spacing: 5px; position:relative; z-index: 2; margin-top: 35px;
-webkit-transition: all 0.4s ease-in-out;
-moz-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
-ms-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;
}
.core-tabNav div::after{
width: 0;height: 0; content: ''; position: absolute; left: 0; right: 0; bottom: -22px; margin: auto;border: solid 12px transparent; opacity: 0; border-top-color:...