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 Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

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