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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

            
              <h1>
  <strong>Pantone<sup>®</sup></strong>
  Color of the Year
</h1>

<div class="container">

  <div class="card pt-2017">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2017</p>
          <p class="color-info">15-0343</p>
          <p class="color-info">Greenery</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">15-0343</p>
        <p class="color-info">Greenery</p>
        <ul>
          <li>CMYK <span>53 13 92 1</span></li>
          <li>RGB <span>136 176 75</span></li>
          <li>HEX <span>#88b04b</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2016-a">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2016</p>
          <p class="color-info">13-1520</p>
          <p class="color-info">Rose Quartz</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">13-1520</p>
        <p class="color-info">Rose Quartz</p>
        <ul>
          <li>CMYK <span>1 24 12 0</span></li>
          <li>RGB <span>247 202 201</span></li>
          <li>HEX <span>#f7cac9</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2016-b">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2016</p>
          <p class="color-info">15-3919</p>
          <p class="color-info">Serenity</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">15-3919</p>
        <p class="color-info">Serenity</p>
        <ul>
          <li>CMYK <span>46 29 3 0</span></li>
          <li>RGB <span>140 164 207</span></li>
          <li>HEX <span>#8ca4cf</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2015">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2015</p>
          <p class="color-info">18-1438</p>
          <p class="color-info">Marsala</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">18-1438</p>
        <p class="color-info">Marsala</p>
        <ul>
          <li>CMYK <span>33 73 61 19</span></li>
          <li>RGB <span>149 182 81</span></li>
          <li>HEX <span>#955251</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2014">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2014</p>
          <p class="color-info">18-3224</p>
          <p class="color-info">Radiant Orchid</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">18-3224</p>
        <p class="color-info">Radiant Orchid</p>
        <ul>
          <li>CMYK <span>29 72 1 0</span></li>
          <li>RGB <span>181 101 167</span></li>
          <li>HEX <span>#b565a7</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2013">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2013</p>
          <p class="color-info">17-5641</p>
          <p class="color-info">Emerald</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">17-5641</p>
        <p class="color-info">Emerald</p>
        <ul>
          <li>CMYK <span>81 15 67 1</span></li>
          <li>RGB <span>22 156 120</span></li>
          <li>HEX <span>#169c78</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2012">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2012</p>
          <p class="color-info">17-1463</p>
          <p class="color-info">Tangerine Tango</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">17-1463</p>
        <p class="color-info">Tangerine Tango</p>
        <ul>
          <li>CMYK <span>0 82 78 0</span></li>
          <li>RGB <span>240 84 66</span></li>
          <li>HEX <span>#f05442</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2011">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2011</p>
          <p class="color-info">18-2120</p>
          <p class="color-info">Honeysuckle</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">18-2120</p>
        <p class="color-info">Honeysuckle</p>
        <ul>
          <li>CMYK <span>10 84 39 0</span></li>
          <li>RGB <span>218 79 112</span></li>
          <li>HEX <span>#da4f70</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2010">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2010</p>
          <p class="color-info">15-5519</p>
          <p class="color-info">Turquoise</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">15-5519</p>
        <p class="color-info">Turquoise</p>
        <ul>
          <li>CMYK <span>69 4 39 0</span></li>
          <li>RGB <span>65 182 171</span></li>
          <li>HEX <span>#41b6ab</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2009">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2009</p>
          <p class="color-info">14-0848</p>
          <p class="color-info">Mimosa</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">14-0848</p>
        <p class="color-info">Mimosa</p>
        <ul>
          <li>CMYK <span>6 25 77 0</span></li>
          <li>RGB <span>240 191 89</span></li>
          <li>HEX <span>#f0bf59</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2008">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2008</p>
          <p class="color-info">18-3943</p>
          <p class="color-info">Blue Iris</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">18-3943</p>
        <p class="color-info">Blue Iris</p>
        <ul>
          <li>CMYK <span>76 71 5 0</span></li>
          <li>RGB <span>89 92 161</span></li>
          <li>HEX <span>#595ca1</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2007">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2007</p>
          <p class="color-info">19-1557</p>
          <p class="color-info">Chili Pepper</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">19-1557</p>
        <p class="color-info">Chili Pepper</p>
        <ul>
          <li>CMYK <span>25 100 79 22</span></li>
          <li>RGB <span>156 27 49</span></li>
          <li>HEX <span>#9c1b31</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2006">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2006</p>
          <p class="color-info">13-1106</p>
          <p class="color-info">Sand Dollar</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">13-1106</p>
        <p class="color-info">Sand Dollar</p>
        <ul>
          <li>CMYK <span>12 17 22 0</span></li>
          <li>RGB <span>222 205 191</span></li>
          <li>HEX <span>#decdbf</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2005">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2005</p>
          <p class="color-info">15-5217</p>
          <p class="color-info">Blue Turquoise</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">15-5217</p>
        <p class="color-info">Blue Turquoise</p>
        <ul>
          <li>CMYK <span>67 10 35 0</span></li>
          <li>RGB <span>79 176 174</span></li>
          <li>HEX <span>#4fb0ae</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2004">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2004</p>
          <p class="color-info">17-1456</p>
          <p class="color-info">Tigerlily</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">17-1456</p>
        <p class="color-info">Tigerlily</p>
        <ul>
          <li>CMYK <span>5 80 82 1</span></li>
          <li>RGB <span>228 88 62</span></li>
          <li>HEX <span>#e4583e</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2003">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2003</p>
          <p class="color-info">14-4811</p>
          <p class="color-info">Aqua Sky</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">14-4811</p>
        <p class="color-info">Aqua Sky</p>
        <ul>
          <li>CMYK <span>51 4 24 6</span></li>
          <li>RGB <span>122 197 197</span></li>
          <li>HEX <span>#7ac5c5</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2002">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2002</p>
          <p class="color-info">19-1664</p>
          <p class="color-info">True Red</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">19-1664</p>
        <p class="color-info">True Red</p>
        <ul>
          <li>CMYK <span>17 99 85 7</span></li>
          <li>RGB <span>192 32 52</span></li>
          <li>HEX <span>#c02034</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2001">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2001</p>
          <p class="color-info">17-2031</p>
          <p class="color-info">Fuchsia Rose</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">17-2031</p>
        <p class="color-info">Fuchsia Rose</p>
        <ul>
          <li>CMYK <span>19 88 31 1</span></li>
          <li>RGB <span>201 68 118</span></li>
          <li>HEX <span>#c94476</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->
  
  <div class="card pt-2000">
    <div class="inner">
      <div class="front">
        <div class="details">
          <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
          <p class="year">2000</p>
          <p class="color-info">15-4020</p>
          <p class="color-info">Cerulean</p>
        </div>
      </div> <!-- /.front -->
      <div class="back">
        <h3 class="pantone-tm">PANTONE<sup>®</sup></h3>
        <p class="color-info">15-4020</p>
        <p class="color-info">Cerulean</p>
        <ul>
          <li>CMYK <span>38 19 5 0</span></li>
          <li>RGB <span>155 183 214</span></li>
          <li>HEX <span>#9bb7d6</span></li>
        </ul>
      </div> <!-- /.back -->
    </div> <!-- /.inner -->
  </div> <!-- /.card -->

</div> <!-- /.container -->
  
            
          
!
            
              /*** General o> */
@import "compass/css3";

* {
	@include box-sizing(border-box);
}

body {
  background: radial-gradient(ellipse farthest-corner at 45px 45px , #dedede 0%, rgba(0, 0, 255, 0) 50%, #f0f0f0 95%);
	font-family: "Helvetica Neue", Helvetica, sans-serif;
	position: relative;
}

/*** Header */
h1 {
	background-color: #fff;
  box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.05);
	color: #231f20;
	font-size: 2.5rem;
	font-weight: 200;
	margin-bottom: 3rem;
	padding: 3rem 0;
	text-align: center;
	text-transform: uppercase;
  
  strong {
    font-weight: 700;
    margin-right: 1rem;
    position: relative;
    
    sup {
      font-size: 1rem;
      position: absolute;
    }
  }
}

/*** Container */
.container {
	display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/*** Card */
.card {
	@include perspective(500);
	
  cursor: pointer;
	display: inline-block;
  margin: 1rem;

  &:hover .inner {
		@include rotateY(180deg);
	}
	
  .inner {
		@include transition(.6s);
		@include transform-style(preserve-3d);
		
    position: relative;
	}
}

/*** Card common */
.card, 
.front, 
.back {
	height: 250px;
	width: 180px;
}

.front, 
.back {
	@include backface-visibility(hidden);
	@include box-shadow(0 2px 0 rgba(0, 0, 0, .06));

  left: 0;
	position: absolute;
	top: 0;
}

.pantone-tm {
	color: #231f20;
  font-size: 1rem;
  font-weight: 700;
  margin: 0.5rem 0;
  position: relative;
  text-transform: uppercase;
      
  sup {
    font-size: 0.7rem;
    position: absolute;
  }
}

.color-info {
  font-size: 0.8rem;
  margin: 0.5rem 0;
}

/*** Card front */
.front {
	z-index: 2;
}

.details {
	background-color: #fff;
	bottom: 0;
	height: 90px;
	padding: 10px;
	position: absolute;
	width: 100%;
}

.year {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  position: absolute;
  right: 0;
  top: -28px;
}

/*** Card back */
.back {
	@include rotateY(180deg);

  background-color: #fff;
	padding: 1.5rem 1.5rem 0;
  text-align: center;
  
  ul {
    margin-top: 1rem;
  }
	
	li {
    @include transition(color .3s);

		color: #888;
		font-weight: 700;
		font-size: 0.8rem;
		padding: 10px 5px;
    text-align: left;

    &:hover {
      color: #231f20;
    }
		
    &:not(:last-child) {
      border-bottom: 1px solid #f0f0f0;
    }
		
    span {
			font-weight: normal;
			float: right;
		}
	}
}

/*** Card colors */
.pt-2017 .front {
	background-color: #88b04b;
}

.pt-2016-a .front {
	background-color: #f7cac9;
}
.pt-2016-b .front {
	background-color: #8ca4cf;
}

.pt-2015 .front {
	background-color: #955251;
}

.pt-2014 .front {
	background-color: #b565a7;
}

.pt-2013 .front {
	background-color: #169c78;
}

.pt-2012 .front {
	background-color: #f05442;
}

.pt-2011 .front {
	background-color: #da4f70;
}

.pt-2010 .front {
	background-color: #41b6ab;
}

.pt-2009 .front {
	background-color: #f0bf59;
}

.pt-2008 .front {
	background-color: #595ca1;
}

.pt-2007 .front {
	background-color: #9c1b31;
}

.pt-2006 .front {
	background-color: #decdbf;
}

.pt-2005 .front {
	background-color: #4fb0ae;
}

.pt-2004 .front {
	background-color: #e4583e;
}

.pt-2003 .front {
	background-color: #7ac5c5;
}

.pt-2002 .front {
	background-color: #c02034;
}

.pt-2001 .front {
	background-color: #c94476;
}

.pt-2000 .front {
	background-color: #9bb7d6;
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console