<section id="transactions">
<div class="wrapper">
<div id="tab-employee" class="tab-content active">
<div class="flex-row">
<div class="left-list">
<ol id="nav">
<li class="active"><p><span>1.</span> Search the Directory</p></li>
<li><p><span>2.</span>What is My Vacation?</p></li>
<li><p><span>3.</span>Request next Friday off</p></li>
<li><p><span>4.</span>Nice placeholder image</p></li>
<li><p><span>5.</span>Change my pay Direct</p></li>
</ol>
</div>
<div class="right-image">
<img class="visi-hidden" src="https://i.postimg.cc/2yc954Vj/phone-bg.png" alt="">
<div class="overflow">
<ul id="slideshow">
<li data-id="0" class="active"><img src="https://i.postimg.cc/8cPnDykn/slide-2.png" alt=""></li>
<li data-id="1"><img src="https://i.postimg.cc/8cPnDykn/slide-2.png" alt=""></li>
<li data-id="2"><img src="https://i.postimg.cc/8cPnDykn/slide-2.png" alt=""></li>
<li data-id="3"><img src="https://i.postimg.cc/8cPnDykn/slide-2.png" alt=""></li>
<li data-id="4"><img src="https://i.postimg.cc/8cPnDykn/slide-2.png" alt=""></li>
</ul>
</div>
<span id="prev" class="arrow arrow-left"></span>
<span id="next" class="arrow arrow-right"></span>
</div>
</div>
</div>
</div>
</section>
html {
font-size: 62.5%;
scroll-behavior: smooth;
}
body {
line-height: 1;
margin: 0;
font-size: 2.7rem;
font-family: Arial;
}
.wrapper {
max-width: 1180px;
margin: 0 auto;
width: 90%;
}
#transactions {
padding: 12rem 0 8rem 0;
}
#transactions h3 {
color: #00758f;
font-size: 3.8rem;
text-align: center;
margin-bottom: 0.5rem;
}
#transactions .tabs {
text-align: center;
margin: 10rem 0;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
#transactions .tabs .tab-links {
border-bottom: 1px solid #d0dee1;
border-top: 1px solid #d0dee1;
padding: 1.5rem 8rem;
color: #00758f;
cursor: pointer;
font-size: 2.1rem;
}
#transactions .tabs .tab-links:hover {
background-color: #00758f;
color: #ffffff;
-webkit-transition: 0.8s ease all;
-o-transition: 0.8s ease all;
transition: 0.8s ease all;
}
#transactions .tabs .tab-links:first-child {
margin-right: 2rem;
}
#transactions .tabs .tab-links.active {
background-color: #00758f;
color: #ffffff;
}
#transactions #tab-employee,
#transactions #tab-manager {
text-align: left;
display: none;
}
#transactions #tab-employee.active,
#transactions #tab-manager.active {
display: block;
}
#transactions #tab-employee .flex-row,
#transactions #tab-manager .flex-row {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
#transactions #tab-employee .left-list,
#transactions #tab-manager .left-list {
width: 55%;
display: inline-block;
padding-bottom: 6rem;
border-bottom: 3px solid #ebebeb;
}
#transactions #tab-employee .left-list ol li,
#transactions #tab-manager .left-list ol li {
margin-bottom: 2rem;
padding-left: 3rem;
list-style-type: none;
color: #c7d9df;
position: relative;
cursor: pointer;
}
#transactions #tab-employee .left-list ol li p,
#transactions #tab-manager .left-list ol li p {
color: #c7d9df;
font-weight: normal;
padding-left: 2rem;
font-size: 3rem;
line-height: 4rem;
}
#transactions #tab-employee .left-list ol li p span,
#transactions #tab-manager .left-list ol li p span {
font-weight: bold;
position: absolute;
left: 0;
right: 0;
}
#transactions #tab-employee .left-list ol li.activeSlide,
#transactions #tab-manager .left-list ol li.activeSlide {
color: #f29111;
font-weight: bold;
}
#transactions #tab-employee .left-list ol li.activeSlide p,
#transactions #tab-manager .left-list ol li.activeSlide p {
color: #f29111;
font-weight: bold;
}
#transactions #tab-employee .right-image,
#transactions #tab-manager .right-image {
width: 40%;
float: right;
position: relative;
overflow: hidden;
}
#transactions #tab-employee .right-image .overflow,
#transactions #tab-manager .right-image .overflow {
width: 51%;
height: 78%;
overflow: hidden;
position: absolute;
top: 9%;
left: 25%;
}
#transactions #tab-employee .right-image .overflow ul,
#transactions #tab-manager .right-image .overflow ul {
height: 100%;
}
#transactions #tab-employee .right-image .overflow ul li,
#transactions #tab-manager .right-image .overflow ul li {
display: none;
height: 100%;
position: absolute;
}
#transactions #tab-employee .right-image .overflow ul li:first-child,
#transactions #tab-manager .right-image .overflow ul li:first-child {
display: block;
}
#transactions #tab-employee .right-image .overflow ul li img,
#transactions #tab-manager .right-image .overflow ul li img {
width: 100%;
width: 100%;
}
#transactions #tab-employee .right-image .visi-hidden,
#transactions #tab-manager .right-image .visi-hidden {
width: 100%;
}
#transactions #tab-employee .right-image .arrow,
#transactions #tab-manager .right-image .arrow {
cursor: pointer;
position: absolute;
top: 50%;
width: 31px;
height: 55px;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
#transactions #tab-employee .right-image .arrow.arrow-left,
#transactions #tab-manager .right-image .arrow.arrow-left {
left: 4%;
background-image: url("https://i.postimg.cc/Y97sDr57/arrows-left.png");
background-repeat: no-repeat;
background-position: left top;
}
#transactions #tab-employee .right-image .arrow.arrow-right,
#transactions #tab-manager .right-image .arrow.arrow-right {
right: 4%;
background-image: url("https://i.postimg.cc/qRGZPfr3/arrows-right.png");
background-repeat: no-repeat;
background-position: right top;
}
#transactions #tab-employee .right-image .arrow.fadeOut,
#transactions #tab-manager .right-image .arrow.fadeOut {
opacity: 0.4;
cursor: auto;
}
$(document).ready(function() {
$(function() {
$("#slideshow").cycle({
fx: "scrollHorz",
speed: "fast",
timeout: 0,
pager: "#nav",
after: removePlanArrow,
pagerAnchorBuilder: function(idx, slide) {
return "#nav li:eq(" + idx + ") ";
}
});
$("#tab-employee #prev").click(function() {
$("#slideshow").cycle("prev");
});
$("#tab-employee #next").click(function() {
$("#slideshow").cycle("next");
});
function removePlanArrow(curr, next, opts) {
var index = opts.currSlide;
$("#tab-employee #prev")[index == 0 ? "fadeOut" : "fadeIn"]();
$("#tab-employee #next")[
index == opts.slideCount - 1 ? "fadeOut" : "fadeIn"
]();
}
//MANAGER TAB CYCLE
$("#slideshow2").cycle({
fx: "scrollHorz",
speed: "fast",
timeout: 0,
pager: "#nav2",
after: arrowFunction,
pagerAnchorBuilder: function(idx, slide) {
return "#nav2 li:eq(" + idx + ") ";
}
});
$("#tab-manager #prev2").click(function() {
$("#slideshow2").cycle("prev");
});
$("#tab-manager #next2").click(function() {
$("#slideshow2").cycle("next");
});
function arrowFunction(curr, next, opts) {
var index = opts.currSlide;
$("#tab-manager #prev2")[index == 0 ? "fadeOut" : "fadeIn"]();
$("#tab-manager #next2")[
index == opts.slideCount - 1 ? "fadeOut" : "fadeIn"
]();
}
});
});
This Pen doesn't use any external CSS resources.