Pen Settings

↑ Insert the most common viewport meta tag

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
via CSS Lint

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
via JS Hint

Code Indentation


Save Automatically?

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

Want a Run Button?

If active, the preview will update automatically when you change code.


              <div class="product">
  <div class="product-hover"></div>
  <img src=""/>
  <div class="product-info">
    <div class="subhead">Sale</div>
    <h2 class="product-name">Fleece</h2>
    <p class="product-description">Beat the chill and get cozy.</p>
    <div class="price">
      <span class="from">from</span>
      <span class="amount">

<h1>Hover Animation<br>from UNIQLO</h1>

<p>Like on pages <a target="_blank" href="">like this</a>.</p>


              @import "compass/css3";

@import url(;

body {
  padding: 20px;
  font-family: 'Ropa Sans', sans-serif;

.product {
  width: 376px;
  padding: 15px;
  position: relative;
  float: left;
  margin: 0 20px 0 0;
  > img {
    display: block;
    position: relative;
  &:hover, &:active {
    .product-hover {
      opacity: 1; 
.product-hover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-size: 30px 30px;
  background-image: linear-gradient(
    rgba(black, 0.1)  25%, 
    transparent       25%, 
    transparent       50%, 
    rgba(black, 0.1)  50%, 
    rgba(black, 0.1)  75%, 
    transparent       75%, 
  animation: barberpole 0.5s linear infinite;
.product-info {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: white;
  width: 150px;
  padding: 10px 10px 50px 10px;
.subhead {
  color: #f00;
  text-transform: uppercase;
  font-weight: bold;
.product-name {
  color: #990033;
  text-transform: uppercase;
  font-weight: bold;
  margin: 0;
  letter-spacing: -1px;
.price {
  position: absolute;
  bottom: 10px;
  right: 10px;
.amount {
  color: red;
  font-size: 150%;
  > span {
    font-size: 75%; 

@keyframes barberpole {
  from { background-position: 0 0; }
  to   { background-position: 60px 30px; }

h1 {
  font-size: 72px;
  margin: 2px 0 0 0;


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