cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-personicon-teamoctocatpop-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.

            
              
<div class="thumb">
  <a href="#" class="link">
    <img src="https://dl.dropbox.com/u/97962632/RL04_WinterOak.jpg" class="image animate">
    <span class="blend animate">
      <strong class="head">Lorem ipsum dolor sit amet</strong>
      <span class="text">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce blandit, nulla id ullamcorper consequat, urna massa pellentesque lectus, et lobortis felis tellus at lorem. Curabitur sed arcu placerat nisl mollis facilisis. Nam tempus massa elit, ut porta mi. Aenean id tempor diam. Sed nec nibh congue lacus suscipit feugiat. Integer in augue nisi, quis tristique erat. Vivamus condimentum libero in risus tincidunt tristique. Pellentesque condimentum scelerisque ipsum at feugiat. Phasellus fermentum aliquam eros in tincidunt.
      </span>
    </span>
  </a>
</div>

<div class="thumb">
  <a href="#" class="link">
    <img src="https://dl.dropbox.com/u/97962632/some.jpg" class="image animate">
    <span class="blend animate">
      <strong class="head">Lorem ipsum dolor sit amet</strong>
      <span class="text">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce blandit, nulla id ullamcorper consequat, urna massa pellentesque lectus, et lobortis felis tellus at lorem. Curabitur sed arcu placerat nisl mollis facilisis. Nam tempus massa elit, ut porta mi. Aenean id tempor diam. Sed nec nibh congue lacus suscipit feugiat. Integer in augue nisi, quis tristique erat. Vivamus condimentum libero in risus tincidunt tristique. Pellentesque condimentum scelerisque ipsum at feugiat. Phasellus fermentum aliquam eros in tincidunt.
      </span>
    </span>
  </a>
</div>

<div class="thumb">
  <a href="#" class="link">
    <img src="https://dl.dropbox.com/u/97962632/Bisam.jpg" class="image animate">
    <span class="blend animate">
      <strong class="head">Lorem ipsum dolor sit amet</strong>
      <span class="text">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce blandit, nulla id ullamcorper consequat, urna massa pellentesque lectus, et lobortis felis tellus at lorem. Curabitur sed arcu placerat nisl mollis facilisis. Nam tempus massa elit, ut porta mi. Aenean id tempor diam. Sed nec nibh congue lacus suscipit feugiat. Integer in augue nisi, quis tristique erat. Vivamus condimentum libero in risus tincidunt tristique. Pellentesque condimentum scelerisque ipsum at feugiat. Phasellus fermentum aliquam eros in tincidunt.
      </span>
    </span>
  </a>
</div>

<div class="thumb">
  <a href="#" class="link">
    <img src="https://dl.dropbox.com/u/97962632/RL04_WinterOak.jpg" class="image animate">
    <span class="blend animate">
      <strong class="head">Lorem ipsum dolor sit amet</strong>
      <span class="text">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce blandit, nulla id ullamcorper consequat, urna massa pellentesque lectus, et lobortis felis tellus at lorem. Curabitur sed arcu placerat nisl mollis facilisis. Nam tempus massa elit, ut porta mi. Aenean id tempor diam. Sed nec nibh congue lacus suscipit feugiat. Integer in augue nisi, quis tristique erat. Vivamus condimentum libero in risus tincidunt tristique. Pellentesque condimentum scelerisque ipsum at feugiat. Phasellus fermentum aliquam eros in tincidunt.
      </span>
    </span>
  </a>
</div>

<div class="thumb">
  <a href="#" class="link">
    <img src="https://dl.dropbox.com/u/97962632/Bisam.jpg" class="image animate">
    <span class="blend animate">
      <strong class="head">Lorem ipsum dolor sit amet</strong>
      <span class="text">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce blandit, nulla id ullamcorper consequat, urna massa pellentesque lectus, et lobortis felis tellus at lorem. Curabitur sed arcu placerat nisl mollis facilisis. Nam tempus massa elit, ut porta mi. Aenean id tempor diam. Sed nec nibh congue lacus suscipit feugiat. Integer in augue nisi, quis tristique erat. Vivamus condimentum libero in risus tincidunt tristique. Pellentesque condimentum scelerisque ipsum at feugiat. Phasellus fermentum aliquam eros in tincidunt.
      </span>
    </span>
  </a>
</div>

<div class="thumb">
  <a href="#" class="link">
    <img src="https://dl.dropbox.com/u/97962632/some.jpg" class="image animate">
    <span class="blend animate">
      <strong class="head">Lorem ipsum dolor sit amet</strong>
      <span class="text">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce blandit, nulla id ullamcorper consequat, urna massa pellentesque lectus, et lobortis felis tellus at lorem. Curabitur sed arcu placerat nisl mollis facilisis. Nam tempus massa elit, ut porta mi. Aenean id tempor diam. Sed nec nibh congue lacus suscipit feugiat. Integer in augue nisi, quis tristique erat. Vivamus condimentum libero in risus tincidunt tristique. Pellentesque condimentum scelerisque ipsum at feugiat. Phasellus fermentum aliquam eros in tincidunt.
      </span>
    </span>
  </a>
</div>


            
          
!
            
              .animate { transition: all .5s ease-in-out; }

.thumb {
  float: left;
  height: auto;
  margin: 0 10px 10px 0;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
  font: 1em/1.2em Segoe UI, sans-serif;
}
.thumb .link {
  display: block;
  position: relative;
  overflow: hidden;  
  width: 320px; height: 180px;
}
.thumb .image {
  position: absolute;
  width: 100%;
}
.thumb .blend {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  font-weight: normal;
  background: rgba(91, 160, 239,0.8);
  color: #fff;
  transition-duration: .4s;
}
.thumb .head {
  height: 1.2em;
  padding: 10px;
  margin: 0;
  display: block;
  font-weight: normal;
  text-shadow: 1px 1px 1px rgba(255,255,255,0.3);
}
.thumb .text {
  display: none;
  position: relative;
  overflow: hidden;
  height: 8.5em; 
  padding: .5em 10px;
  font-size: .7em;
}
.thumb .link:hover .image {
  left: -125%; top: -125%;
  width: 300%;
}
.thumb .link:hover .blend {
  height: 100%;
}
.thumb .link:hover .text {
  display: block;
}



            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console