LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

Hello

CSS
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700');
@import url('https://fonts.googleapis.com/css?family=Raleway:900');
* {
  box-sizing: border-box;
}
html,
body {
  overflow: hidden;
}
.clearfix::before,
.clearfix::after {
  display: table;
  content: ' ';
}
.clearfix::after {
  clear: both;
}
.clearfix {
  *zoom: 1;
  /* Für den IE6 und IE7 */
}
@-webkit-keyframes slideInFromTop {
  0% {
    visibility: hidden;
    -webkit-transform: translateY(-100%);
            transform: translateY(-100%);
  }
  100% {
    visibility: visible;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes slideInFromTop {
  0% {
    visibility: hidden;
    -webkit-transform: translateY(-100%);
            transform: translateY(-100%);
  }
  100% {
    visibility: visible;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@-webkit-keyframes slideInFromRight {
  0% {
    visibility: hidden;
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
  }
  100% {
    visibility: visible;
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}
@keyframes slideInFromRight {
  0% {
    visibility: hidden;
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
  }
  100% {
    visibility: visible;
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}
@-webkit-keyframes slideInFromLeft {
  0% {
    visibility: hidden;
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
  100% {
    visibility: visible;
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}
@keyframes slideInFromLeft {
  0% {
    visibility: hidden;
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
  100% {
    visibility: visible;
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}
header {
  border-box: box-sizing;
  -webkit-animation: .4s ease 0s 1 slideInFromTop;
          animation: .4s ease 0s 1 slideInFromTop;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
  background-color: #111111;
}
header .container {
  padding: 25px 20px;
}
#logo_box {
  width: auto;
  height: 50px;
  float: left;
  padding: 0 5px;
  visibility: hidden;
  background-color: #FF4136;
  -webkit-animation: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s 1 slideInFromLeft;
          animation: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s 1 slideInFromLeft;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
  box-sizing: content-box;
}
#logo_box > #logo {
  font-family: "Raleway", sans-serif;
  font-weight: 900;
  color: #FFFFFF;
  text-transform: uppercase;
  font-size: 35px;
  line-height: 50px;
}
nav {
  visibility: hidden;
  float: right;
  line-height: 50px;
  -webkit-animation: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s 1 slideInFromRight;
          animation: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s 1 slideInFromRight;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}
header > div > nav > a {
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  margin-right: 10px;
  padding: 0 2px;
  transition: background-size 0.2s, color 0.2s 0.1s;
  text-decoration: none;
  text-transform: uppercase;
  color: #FFFFFF;
  background: linear-gradient(#FF4136, #FF4136) no-repeat bottom;
  background-size: 100% 2px;
}
header > div > nav > a:nth-last-child(1) {
  margin-right: 0;
}
header > div > nav > a:hover {
  color: #FFFFFF;
  background-size: 100% 100%;
}
.container {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (max-width: 768px) {
  body {
    background: #F012BE;
  }
}
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
  #mobileNav {
    display: none;
  }
}
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}
.container-fluid {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
/* Hamburger Menu */
.hamburger-menu {
  width: 60px;
  height: 50px;
  cursor: pointer;
  float: right;
  display: none;
}
@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }
  header > div > nav {
    display: none;
  }
}
.bar,
.bar:after,
.bar:before {
  width: 60px;
  height: 10px;
}
.bar {
  position: relative;
  -webkit-transform: translateY(20px);
          transform: translateY(20px);
  background: #ffffff;
  transition: all 0ms 300ms;
}
.bar.animate {
  background: rgba(255, 255, 255, 0);
}
.bar:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 20px;
  background: #ffffff;
  transition: bottom 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
  transition: bottom 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
  transition: bottom 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}
.bar:after {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  background: #ffffff;
  transition: top 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
  transition: top 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
  transition: top 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}
.bar.animate:after {
  top: 0;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  transition: top 300ms cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1);
  transition: top 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1);
  transition: top 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1);
}
.bar.animate:before {
  bottom: 0;
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
  transition: bottom 300ms cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1);
  transition: bottom 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1);
  transition: bottom 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1);
}
/* END Hamburger Menu */
/* Mobile Menu */
#mobileNav {
  width: 100%;
  height: auto;
  background-color: #FF4136;
  display: none;
}
#mobileNav nav {
  height: auto;
  width: 100%;
  line-height: 40px;
}
#mobileNav nav a {
  display: block;
  text-align: center;
}
/* END Mobile Menu */
JS
$("nav").clone().appendTo("#mobileNav .container");
$(".hamburger-menu").on("click", function() {
	$(".bar").toggleClass("animate");
	$("#mobileNav").slideToggle();
});
Term
Sat, 04/14/2018 - 20:49

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv