cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <ul>
  <li>
    <a href="#">
      <i class="fontelico-emo-grin"></i>
      <h2>Hover me</h2>
      <p> Check out this hover effect i made with pure CSS</p>
    </a>
  </li>
  <li class="active">
    <a href="#">
      <i class="fontelico-emo-devil"></i>
      <h2>No need to hover me</h2>
      <p>I'm stuck in this state so that the Codepen preview will show the effect</p>
    </a>
  </li>

  <li>
    <a href="#">
      <i class="fontelico-emo-tongue"></i>
      <h2>Hover me</h2>
      <p> Check out this hover effect i made with pure CSS</p>
    </a>
  </li>
    <li>
    <a href="#">
      <i class="fontelico-emo-thumbsup"></i>
      <h2>Hover me</h2>
      <p> Check out this hover effect i made with pure CSS</p>
    </a>
  </li>
</ul>
            
          
!
            
              @import url(http://weloveiconfonts.com/api/?family=fontelico);

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


*,
*:before,
*:after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  font-family: "Exo", sans-serif;
  font-size: 1em;
  line-height: 1.6;
  background: #EEE;
}

ul {
  display: block;
  position: absolute;
  width: 90%;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10%;
  li {
    display: inline-block;
    border: 2px dotted transparent;
    width: 47%;
    height: 350px;
    position: relative;
    transition: all .4s ease;
    margin: 1%;
    a {
      display: block;
      content: "";
      position: absolute;
      width: 100%;
      height: 100%;
      background: #fff;
      transition: all .25s ease-in-out;
      padding: 30px;
      border: 2px solid transparent;
      color: #444;
      text-decoration: none;
      i {
        font-size: 2.5em;
      }
      h2 {
        font-size: 1.4em;
        font-weight: 700;
        margin-bottom: .5em;
      }
    }
    
    &.active {
      border-color: #CCC;
        a {
          border-color: orange;
          transform: translate(-4%, -4%);
        }
      }
    &:hover {
      border-color: #CCC;
      a {
        border-color: orange;
        transform: translate(-4%, -4%);
      }
    }
  }
}


            
          
!
999px
Loading ..................

Console