JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://aliensix.com/lightningbolt/css/bootstrap.min.css">
<script src="http://aliensix.com/lightningbolt/js/bootstrap.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/plugins/ScrollToPlugin.min.js"></script>
<!-- Begin Summary -->
<section id="section1">
<div class="row summary">
<div class="container">
<!-- Content -->
<div class="col-lg-10 col-lg-offset-1" >
<h3>We create useable ui</h3>
<hr>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer a elit turpis. Phasellus non varius mi. Nam bibendum mauris at sollicitudin lacinia. Vestibulum blandit nibh neque, id consequat mi vestibulum eu. Suspendisse potenti. Ut ac consequat nulla. Praesent tristique eleifend tincidunt.</p>
<a href="#" data-id="section3" class="btn btn-default bolt-button-dark scroll-link">
About us
</a>
</div>
</div>
</div>
</section>
<!-- End Summary -->
<!-- Begin Portfolio -->
<section id="section2">
<div class="container portfolio">
<!-- Page Title -->
<div class="row page-title">
<div class="col-lg-12">
<h3>Portfolio</h3>
<hr>
<p>We also create some other stuff.</p>
</div>
</div>
<!-- Portfolio Filter -->
<div class="container text-center">
<ul id="filterOptions" class="nav nav-pills">
<li class="active"><a href="#" class="all">all</a></li>
<li><a href="#" class="print">print</a></li>
<li><a href="#" class="web">web</a></li>
<li><a href="#" class="branding">branding</a></li>
<li><a href="#" class="apps">apps</a></li>
<li><a href="#" class="graphic design">graphic design</a></li>
<li><a href="#" class="illustation">illustration</a></li>
</ul>
</div>
<!-- Portfolio Items -->
<div...
CSS
/* =Summary
-------------------------------------------------------------- */
.summary {
padding: 180px 0 180px 0;
background-color: #f1f1f1;
text-align: center;
}
/* =Portfolio
-------------------------------------------------------------- */
.portfolio {
padding: 180px 0 180px 0;
}
.portfolio img {
width: 390px;
height: 390px;
}
.portfolio .page-title {
padding-bottom: 5px;
}
.nav-pills {
font-size: 14px;
font-weight: 400;
margin-bottom: 50px;
font-weight: 300;
display: inline-block;
}
.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus {
background-color: transparent;
color: #272727;
}
.portfolio ul.nav a {
color: #bdbdbd;
border-radius: 0;
}
.portfolio ul.nav a:hover {
color: #272727;
}
.portfolio ul li {
list-style-type: none;
}
.portfolio ul li:hover span.portfolio-hover {
opacity: 1;
}
span.portfolio-hover {
background: rgba(39,39,39,0.95);
color: #8e8e8e;
display: table;
width: 390px;
height: 390px;
left: 0;
position: absolute;
top: 0;
opacity: 0;
-webkit-transition: opacity 500ms;
-moz-transition: opacity 500ms;
-o-transition: opacity 500ms;
transition: opacity 500ms;
}
span.portfolio-hover span {
display: table-cell;
text-align: center;
vertical-align: middle;
}
.portfolio h4 {
font-size: 18px;
text-transform: none;
color: #fff;
margin: 0 0 5px !important;
}
.modal-content {
border: 0;
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.modal button.close {
border: 2px solid #272727;
padding: 5px 5px 5px 5px;
box-shadow: none;
-webkit-box-shadow: none;
}
.modal button.close:hover {
background-color: #272727;
border: 2px solid #272727;
opacity: 1;
color: #fff;
box-shadow: none;
-webkit-box-shadow: none;
}
.close {
opacity: .9;
border: 2px solid #272727;
padding: 5px 5px 5px 5px;
}
.modal img {
width: 100%;
padding-bottom: 30px;
}
.subtitle {
text-align: center;
padding-bottom: 30px;
color:...
JavaScript
/* http://blog.bassta.bg/2013/05/smooth-page-scrolling-with-tweenmax/ */
$(function() {
var $window = $(window); //Window object
var scrollTime = 1.2; //Scroll time
var scrollDistance = 320; //Distance. Use smaller value for shorter scroll and greater value for longer scroll
var scrollTween;
$window.on("mousewheel DOMMouseScroll", function(event) {
if (!$(document.body).is('.modal-open')) { // don't interfere if a modal is open
event.preventDefault();
var delta = event.originalEvent.wheelDelta / 120 || -event.originalEvent.detail / 3;
var scrollTop = $window.scrollTop();
var finalScroll = scrollTop - parseInt(delta * scrollDistance);
scrollTween = TweenMax.to($window, scrollTime, {
scrollTo: {
y: finalScroll,
autoKill: true
},
ease: Power1.easeOut,
overwrite: 5
});
}
});
// if you need to add click handlers or whatever, do it here
});