LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code


  
	  

	  Social Navigation
  

  
    
  
CSS
@charset "utf-8";

/* ---------- FONTAWESOME ---------- */

@import url(http://weloveiconfonts.com/api/?family=fontawesome);

[class*="fontawesome-"]:before {
  font-family: 'FontAwesome', sans-serif;
}

@red: #9a1323;
@skyblue: #128cc9;

body {
  font-size: 62.5%;
}

nav {
  margin: 30px;
  padding: 0 20px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #fafafa;
  padding: 10px 10px;
  text-align: center;
  border-radius: 10px;
  box-shadow: inset 0px 0px 10px white;
  -webkit-box-shadow: inset 0px 0px 10px white;
}

nav ul li {
  display: inline-block;
  padding: 0px;
  margin: 0px 5px;
  border: 0px solid white;
  border-radius: 30px;
  background-color: white;
  box-shadow: inset 0px 0px 10px #128cc9;
  -webkit-box-shadow: inset 0px 0px 10px #128cc9;
  min-width: 20px;
  text-align: center;
  width: 50px;
  height: 50px;
  position: relative;
}

nav ul li div {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: 0px solid white;
  border-radius: 30px;
  background-color: #128cc9;
  -webkit-transition: width 1s, height 1s, top 1s, left 1s;
  transition: width: 1s, height 1s, top 1s, left 1s;
}

nav ul li a {
  width: 20px;
  height: 20px;
  text-decoration: none;
  position: absolute;
  top: 15px;
  left: 15px;
  -webkit-transition: top 1s, left 1s;
  transition: top 1s, left 1s;
}

nav ul li a span {
  font-size: 1.9em;
  color: white;
  -webkit-transition: color 1s;
  transition: color 1s;
}

nav ul li:hover div {
  width: 0px;
  height: 0px;
  top: 25px;
  left: 25px;
}
nav ul li:hover a {
  color: white;
  top: -10px;
  left: -10px;
}
nav ul li:hover a span {
  color: #128cc9;
}
Host Instantly Drag and Drop Website Builder

 

Term
Wed, 11/29/2017 - 11:19

Related Codes

Pen ID
Pen ID
Pen ID