myCoolMenu
by Jiff Pom
HTML
<div class="com">
<div class="com__content">
<section class="com__section com__section--text">
<h1 class="animate slideInLeft ">Communication Design</h1>
<p class="animate slideInLeft delay-3">Communication design is a mixed discipline between design and information-development which is concerned with how media intermission such as printed, crafted, electronic media or presentations communicate with people.</p>
</section>
<section class="com__section com__section--text com__section--text-img">
<div class="com__section-half">
<h1 class="animate slideInLeft">Communication Design</h1>
<p class="animate slideInLeft delay-2">Communication design is a mixed discipline between design and information-development which is concerned with how media intermission such as printed, crafted, electronic media or presentations communicate with people.</p>
</div>
<div class="com__section-half">
<img class="animate slideInRight delay-3" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/45226/ettrics-logo.svg" alt="" />
</div>
</section>
<section class="com__section com__section--text centered">
<h1 class="animate scaleIn">Communication Design</h1>
<img class="animate scaleIn delay-3" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/45226/ettrics-logo.svg" alt="" />
</section>
</div>
<nav class="com__nav">
<ul class="com__nav-list">
<li class="com__nav-item">
<a href="" class="com__nav-link centered">
<span class="blue-line animate scaleIn delay-3 menuVoiceTitle">FUNCTION 1</span>
<span class="white-circle animate scaleIn delay-5"></span>
</a>
</li>
<li class="com__nav-item">
<a href="" class="com__nav-link centered">
<span class="blue-line animate scaleIn delay-3 menuVoiceTitle">FUNCTION 2</span>
<span class="white-circle animate scaleIn delay-5"></span>
</a>
</li>
<li class="com__nav-item">
<a href="" class="com__nav-link centered">
<span...
CSS
* {
box-sizing: border-box;
}
body {
font-family: 'Lato';
-webkit-font-smoothing: antialiased;
line-height: 1.5;
}
.com {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: stretch;
-webkit-align-items: stretch;
-ms-flex-align: stretch;
align-items: stretch;
height: 100vh;
overflow: hidden;
}
.com__content {
position: relative;
-webkit-box-flex: 8;
-webkit-flex: 8;
-ms-flex: 8;
flex: 8;
background: #404855;
padding: 10vh 10vw;
}
.com__section {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-flow: column wrap;
-ms-flex-flow: column wrap;
flex-flow: column wrap;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
height: 100vh;
position: absolute;
top: 0;
left: 0;
width: 100%;
padding: 0 10%;
opacity: 0;
visibility: hidden;
-webkit-transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.com__section.active {
opacity: 1;
visibility: visible;
}
.com__section-half {
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
height: 100vh;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-flow: column wrap;
-ms-flex-flow: column wrap;
flex-flow: column wrap;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
}
.com__section--text h1 {
margin-bottom: 3vh;
font-size: 48px;
font-weight: 300;
color: #22E2ED;
}
.com__section--text p {
margin: 0;
color: rgba(255, 255, 255, 0.9);
max-width: 600px;
font-size: 20px;
}
.com__section--text img {
max-width: 250px;
margin: 0 auto;
}
.com__section--text.centered {
text-align:...
JavaScript
$('.com__nav-item').click(function(){
var targettext = $(this).find('span.menuVoiceTitle').text();
alert(targettext);
});