Header Ads

Niagahoster

Tiny CSS 3 Breadcrumb

Tiny CSS 3 Breadcrumb

CSS Code

* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  padding: 0 100px;
  background-color: #59A386;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
}
h1 {
  color: #77c2a5;
  font-weight: 400;
  padding: 50px 0;
}
ul.breadcrumb {
  margin-left: 50px;
  display: inline-block;
  list-style: none;
}
ul.breadcrumb li {
  float: right;
  padding: 5px;
  background-color: #59A386;
  -moz-border-radius: 50px;
  -webkit-border-radius: 50px;
  border-radius: 50px;
  position: relative;
  margin-left: -50px;
  -moz-transition: all 0.2s;
  -o-transition: all 0.2s;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  margin-top: 3px;
}
ul.breadcrumb li a {
  overflow: hidden;
  -moz-border-radius: 50px;
  -webkit-border-radius: 50px;
  border-radius: 50px;
  -moz-transition: all 0.2s;
  -o-transition: all 0.2s;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  text-decoration: none;
  height: 50px;
  color: #509378;
  background-color: #65BA99;
  text-align: center;
  min-width: 50px;
  display: block;
  line-height: 50px;
  padding-left: 52px;
  padding-right: 33.33333px;
  width: 50px;
}
ul.breadcrumb li a .icon {
  display: inline-block;
}
ul.breadcrumb li a .text {
  display: none;
  opacity: 0;
}
ul.breadcrumb li a:hover {
  width: 150px;
  background-color: #77c2a5;
}
ul.breadcrumb li a:hover .text {
  display: inline-block;
  opacity: 1;
}
ul.breadcrumb li:last-child a {
  padding: 0;
}
ul.breadcrumb li:last-child:hover {
  padding: 3px;
  margin-top: 0;
}
ul.breadcrumb li:last-child:hover a {
  width: 60px;
  height: 60px;
  line-height: 60px;
}

HTML Code

<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" 
rel="stylesheet">
<h1>Tiny CSS 3 breadcrumb</h1>
<ul class="breadcrumb">
  <li>
    <a href="#">
      <span class="icon icon-file"></span>
      <span class="text">file</span>
    </a>
  </li>
  <li>
    <a href="#">
      <span class="icon icon-folder-open"></span>
      <span class="text">folder</span>
    </a>
  </li>
  <li>
    <a href="#">
      <span class="icon icon-code"></span>
      <span class="text">CSS 3</span>
    </a>
  </li>
  <li>
    <a href="#">
      <span class="icon icon-beaker"></span>
      <span class="text">Lab</span>
    </a>
  </li>
  <li>
    <a href="#">
      <span class="icon icon-home"></span>
    </a>
  </li>
</ul>

LIVE PREVIEW

See the Pen CSS Gallery - CSS 3 Breadcrumb by Peternak Blog (@peternakblog) on CodePen.

Credit: eMaj
Powered by Blogger.