JSFiddle - React, Tailwind, and code Playground
HTML
<div class="projectWrap">
<div class="behind" style="background-color: rgb(236, 205, 0);"></div>
<div class="grid grid-pad">
<div class="col-1-1">
<div class="image-wrap">
<div class="owl-carousel">
<div class="item">
<img src="work/Maru/img/maru-1.jpg" alt="The Last of us">
</div>
</div>
<div class="descriptionTitle"> <span class="Title"> Maru </span>
</div>
</div>
</div>
</div>
<div class="grid grid-pad">
<div class="title-wrap">
<div class="col-1-2 push-right">
<div class="description">
<button class="toggle">More info</button>
<div class="content">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</div>
</div>
</div>
</div>
</div>
</div>
CSS
.splash {
position:fixed;
top:0;
width:100%;
height:100%;
left:0;
z-index:9999;
background:#0AAF86;
display:none;
}
.close {
color:#fff;
}
.close:hover {
text-decoration:underline;
color:#fff;
}
::selection {
background: #A9A9A9;
/* WebKit/Blink Browsers */
;
}
::-moz-selection {
background: #A9A9A9;
/* Gecko Browsers */
;
}
.owl-carousel .item img {
display: block;
width: 100%;
height: auto;
}
#menu {
padding: 0;
margin: 0;
white-space: nowrap;
list-style-type: none;
}
#menu li {
display: inline;
}
#menu li a {
margin-right: 20px;
font-family:'Istok Web', Arial, Helvetica, sans-serif;
font-size: 10.5pt;
letter-spacing: 0px;
color: #686868;
text-decoration: none;
float: left;
border-bottom: 1px solid #FAFAFA;
-webkit-transition: border-color 1s ease;
-moz-transition: border-color .6s ease;
-o-transition: border-color .6s ease;
-ms-transition: border-color .6s ease;
transition: border-color .6s ease;
}
#menu li a:hover {
border-bottom: 1px solid #CACACA;
}
#aboutWrap {
display:block;
position:fixed;
width: 100%;
top: 10%;
z-index:999;
-moz-animation-name: dropHeader;
-moz-animation-iteration-count: 1;
-moz-animation-timing-function: ease-in;
-moz-animation-duration: 0.9s;
-webkit-animation-name: dropHeader;
-webkit-animation-iteration-count: 1;
-webkit-animation-timing-function: ease-in;
-webkit-animation-duration: 0.9s;
animation-name: dropHeader;
animation-iteration-count: 1;
animation-timing-function: ease-in;
animation-duration: 0.9s;
}
@-moz-keyframes dropHeader {
0% {
-moz-transform: translateX(-1000px);
}
100% {
-moz-transform: translateY(0);
}
;
}
@-webkit-keyframes dropHeader {
0% {
-webkit-transform: translateX(-1000px);
}
100% {
-webkit-transform: translateY(0);
}
...
JavaScript
$(document).ready(function () {
$('.toggle').on("click", function () {
$('.content').slideToggle("slow", function () {
$(window).scrollTop($(this).offset().top + $(this).height());
});
});
});
$('#showmenu').click(function(){
$('.quicklink-section').slideToggle("slow", function () {
$(window).scrollTop($(this).offset().top + $(this).height());
});
});