<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<!DOCTYPE html><html class=''>
<head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/slicecrowd/pen/JWdJJy?limit=all&page=40&q=about+us" />
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet">
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css'>
<style class="cp-pen-styles">html,
body {
height: 100%;
font-family: "Roboto", sans-serif;
}
.d-flex, .page-wrapper {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.align-center {
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.flex-centerY-centerX, .page-wrapper {
justify-content: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.page-wrapper {
height: 100%;
background-color: #f2f2f2;
}
.el-wrapper {
width: 100%;
height: 100vh;
position: relative;
overflow: hidden;
-webkit-box-shadow: 2px 2px 15px #000;
box-shadow: 2px 2px 15px #000;
background: url("http://code.slicecrowd.com/labs/7/images/bg.jpg") center no-repeat;
background-size: cover;
}
@media (max-width: 767px) {
.el-wrapper {
background-position: center 100px;
}
}
.nav-list {
-webkit-transition: all 0.4s cubic-bezier(0, 0, 0.355, 1);
-moz-transition: all 0.4s cubic-bezier(0, 0, 0.355, 1);
-o-transition: all 0.4s cubic-bezier(0, 0, 0.355, 1);
transition: all 0.4s cubic-bezier(0, 0, 0.355, 1);
/* custom */
-webkit-transition-timing-function: cubic-bezier(0, 0, 0.355, 1);
-moz-transition-timing-function: cubic-bezier(0, 0, 0.355, 1);
-o-transition-timing-function: cubic-bezier(0, 0, 0.355, 1);
transition-timing-function: cubic-bezier(0, 0, 0.355, 1);
/* custom */
margin: 0;
padding: 0;
list-style: none;
font-weight: 300;
position: absolute;
right: 55px;
top: 53px;
opacity: 0;
padding-bottom: 6px;
padding-right: 55px;
overflow: hidden;
}
.nav-list #magic-line {
width: 180px;
height: 3px;
background: #464646;
position: absolute;
bottom: 2px;
left: 100%;
display: inline-block;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
border-radius: 5px;
-webkit-transition: all 0.3s cubic-bezier(0, 0, 0.355, 1);
-moz-transition: all 0.3s cubic-bezier(0, 0, 0.355, 1);
-o-transition: all 0.3s cubic-bezier(0, 0, 0.355, 1);
transition: all 0.3s cubic-bezier(0, 0, 0.355, 1);
/* custom */
-webkit-transition-timing-function: cubic-bezier(0, 0, 0.355, 1);
-moz-transition-timing-function: cubic-bezier(0, 0, 0.355, 1);
-o-transition-timing-function: cubic-bezier(0, 0, 0.355, 1);
transition-timing-function: cubic-bezier(0, 0, 0.355, 1);
/* custom */
}
.nav-list .list-item {
float: left;
}
@media (max-width: 767px) {
.nav-list .list-item {
float: none;
}
}
.nav-list .list-item:last-of-type a {
padding-right: 0;
}
.nav-list .list-item .list-link {
padding: 0 15px;
font-size: 22px;
color: #2e2e33;
}
.nav-list .list-item .list-link:hover {
text-decoration: none;
}
.menu-wrapper.opened .menu-btn {
-webkit-transition: all 0.5s cubic-bezier(0, 0, 0.355, 1);
-moz-transition: all 0.5s cubic-bezier(0, 0, 0.355, 1);
-o-transition: all 0.5s cubic-bezier(0, 0, 0.355, 1);
transition: all 0.5s cubic-bezier(0, 0, 0.355, 1);
/* custom */
-webkit-transition-timing-function: cubic-bezier(0, 0, 0.355, 1);
-moz-transition-timing-function: cubic-bezier(0, 0, 0.355, 1);
-o-transition-timing-function: cubic-bezier(0, 0, 0.355, 1);
transition-timing-function: cubic-bezier(0, 0, 0.355, 1);
/* custom */
width: 28px;
height: 16px;
}
.menu-wrapper.opened .menu-btn:hover {
-webkit-transform: rotate(90deg);
-ms-transform: rotate(90deg);
-o-transform: rotate(90deg);
transform: rotate(90deg);
}
.menu-wrapper.opened .nav-list {
right: 75px;
opacity: 1;
}
.menu-btn {
width: 30px;
height: 18px;
position: absolute;
right: 60px;
top: 60px;
cursor: pointer;
}
.menu-btn .menu-line {
width: 30px;
height: 3px;
background-color: #464646;
display: block;
position: absolute;
top: 0;
left: 0;
}
.menu-btn .menu-line.middle-line {
top: 6px;
}
.menu-btn .menu-line.bottom-line {
width: 22px;
top: 12px;
}</style></head><body>
<div class="page-wrapper">
<div class="el-wrapper">
<div class="menu-wrapper">
<ul class="nav-list">
<li class="list-item">
<a href="#" class="list-link">About us</a>
</li>
<li class="list-item">
<a href="#" class="list-link">Product Line</a>
</li>
<li class="list-item">
<a href="#" class="list-link">Portfolio</a>
</li>
<li class="list-item">
<a href="#" class="list-link">Get in touch</a>
</li>
</ul>
<div class="menu-btn">
<span class="menu-line top-line"></span>
<span class="menu-line middle-line"></span>
<span class="menu-line bottom-line"></span>
</div>
</div>
</div>
</div>
<script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='https://code.jquery.com/jquery-3.1.1.min.js'></script><script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'></script><script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.0/TweenMax.min.js'></script>
<script >$(document).ready(function () {
var tlMouseEnter = new TimelineMax({paused: true}),
tlClick = new TimelineMax({paused: true}),
tlClickClose = new TimelineMax({paused: true}),
topLine = $('.top-line'),
middleLine = $('.middle-line'),
bottomLine = $('.bottom-line'),
menuLine = $('.menu-line'),
checking = false,
animating = false,
speed15ms = 0.15,
speed20ms = 0.2,
menuWrapper = $('.menu-wrapper'),
navList = $('.nav-list');
tlMouseEnter
.to(menuLine, speed15ms, {
width: '6px',
height: '6px',
borderRadius: '50%',
ease: Sine.easeInOut
})
.to(topLine, speed15ms, {
x: 24,
y: 6
}, '-=' + speed15ms)
.to(middleLine, speed15ms, {
x: 12,
y: 0
}, '-=' + speed15ms)
.to(bottomLine, speed15ms, {
x: 0,
y: -6
}, '-=' + speed15ms);
tlClick
.to(topLine, speed20ms, {
x: 12,
onStart: function() {
checking = true,
animating = true;
}
})
.to(bottomLine, speed20ms, {
x: 12
}, '-=' + speed20ms)
.to(middleLine, 0.1, {
x: -6,
y: -18,
width: 40,
height: 40,
borderRadius: '50%',
ease: Sine.easeInOut
}, '+=0.10')
.to(topLine, speed20ms, {
width: 20,
height: 3,
x: 4,
y: 6,
zIndex: 1,
borderRadius: 0,
rotation: 45,
backgroundColor: '#fff',
ease: Sine.easeInOut
}, '-=0.16')
.to(bottomLine, speed20ms, {
width: 20,
height: 3,
x: 4,
y: -6,
zIndex: 1,
borderRadius: 0,
rotation: -45,
backgroundColor: '#fff',
ease: Sine.easeInOut,
onComplete: function() {
animating = false;
}
}, '-=' + speed20ms);
tlClickClose
.to(topLine, speed20ms, {
width: 0,
x: 13,
rotation: 0,
onStart: function() {
animating = true;
}
})
.to(bottomLine, speed20ms, {
width: 0,
x: 13,
rotation: 0
}, '-=' + speed20ms)
.to(middleLine, speed20ms, {
width: 32,
height: 3,
x: 0,
y: 0,
borderRadius: 0,
ease: Sine.easeInOut
}, '-=0.05')
.to(topLine, speed20ms, {
width: 32,
x: 0,
y: 0,
backgroundColor: '#464646',
ease: Sine.easeInOut
}, '-=0.1')
.to(bottomLine, speed20ms, {
width: 22,
x: 0,
y: 0,
backgroundColor: '#464646',
ease: Sine.easeInOut,
onComplete: function() {
checking = true,
animating = false;
}
}, '-=' + speed20ms);
$(document).click(function (e) {
//check if the clicked area is .menu-wrapper or not
if (menuWrapper.hasClass('opened') && !animating) {
menuWrapper.removeClass('opened');
tlClick.pause();
tlClickClose.play(0);
}
});
$('.menu-btn').hover(function() {
/* Stuff to do when the mouse enters the element */
if (!menuWrapper.hasClass('opened') && !animating) {
tlMouseEnter.play(0);
}
if (!animating) {
checking = false;
}
}, function() {
/* Stuff to do when the mouse leaves the element */
if (!menuWrapper.hasClass('opened') && !checking && !animating) {
tlMouseEnter.reverse();
}
if (!animating) {
checking = false;
}
});
$('.menu-btn').click(function(event) {
/* Act on the event */
event.stopPropagation();
if (!animating) {
menuWrapper.toggleClass('opened');
if (menuWrapper.hasClass('opened')) {
tlClickClose.pause();
tlClick.play(0);
} else {
tlClick.pause();
tlClickClose.play(0);
}
}
});
function stopanimations() {
// tlMouseEnter.pause();
// tlClick.pause();
// tlClickClose.pause();
}
/* Add Magic Line markup via JavaScript, because it ain't gonna work without */
navList.append("<span id='magic-line'></span>");
/* Cache it */
var _magicLine = $("#magic-line");
_magicLine
// .css("right", '-180px')
.attr("data-origLeft", "100%")
.attr("data-origWidth", '180px');
navList.find(".list-item a").hover(function() {
var $el = $(this);
leftPos = $el.position().left;
newWidth = $el.parent().width();
_magicLine.stop().css({
left: leftPos + newWidth/2-19,
width: 38
});
}, function() {
_magicLine.stop().css({
left: _magicLine.attr("data-origLeft"),
width: _magicLine.attr("data-origWidth")
});
});
});
//# sourceURL=pen.js
</script>
</body></html>