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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <figure class="card">
  <img src="https://dl.dropboxusercontent.com/u/330966/static/cardinfo/folio.png" />
  <figcaption class="info">
    <h3>concrete coat</h3>
    <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolorem.</p>
    <ul class="links">
      <li><a href="#">View</a></li>
      <li class="share">
        <a href="#">Share</a>
        <span class="shareButtons">
          <a href="#" class="entypo-facebook-squared"></a>            
          <a href="#" class="entypo-twitter"></a>            
          <a href="#" class="entypo-mail"></a>            
        </span>
      </li>
    </ul>
  </figcaption>
</figure>
            
          
!
            
              @import url("https://fonts.googleapis.com/css?family=Inconsolata:700,400");
@import url('http://weloveiconfonts.com/api/?family=entypo');
* {
  margin:0px;
  padding:0px;
  font-family: 'Inconsolata', sans-serif;
}
[class*="entypo-"]:before {
  font-family: 'entypo', sans-serif;
  line-height:1.8rem;
  font-size:1.6rem;
  font-weight:normal;
}
.card img, .card .info, .card .info:before {
  position:absolute;
}
.card img, .card .info { 
  -webkit-box-shadow:0px 0px 20px rgba(0,0,0,0.15);
  -moz-box-shadow:   0px 0px 20px rgba(0,0,0,0.15);
  box-shadow:        0px 0px 20px rgba(0,0,0,0.15);
}
.card {
  position:relative;
  margin:5rem auto;
  width:400px;
  height:560px;
  background:transparent;
  cursor:pointer;
}
.card img {
  z-index:999;
  -webkit-animation:flipback2 1s forwards;
  -moz-animation:   flipback2 1s forwards;
  -o-animation:     flipback2 1s forwards;
  animation:        flipback2 1s forwards;
}
.card .info {
  bottom:20px;
  right:-20px;
  width:100%;
  padding:20px 40px 20px 20px;
  -webkit-box-sizing:border-box;
  -moz-box-sizing:   border-box;
  box-sizing:        border-box;
  background:rgba(255,255,255,0.4);
  z-index:555;
  -webkit-animation:flipfront2 0.7s forwards;
  -moz-animation:   flipfront2 0.7s forwards;
  -o-animation:     flipfront2 0.7s forwards;
  animation:        flipfront2 0.7s forwards;
}
.card .info:before {
  content:'i';
  top:0px;
  right:0px;
  width:20px;
  height:20px;
  text-align:center;
  font-weight:700;
  font-size:1rem;
  line-height:20px;
  color:white;
  background:black;
}
.card:hover img {
  -webkit-animation:flipback1 1s forwards;
  -moz-animation:   flipback1 1s forwards;
  -o-animation:     flipback1 1s forwards;
  animation:        flipback1 1s forwards;
}
.card:hover .info {
  -webkit-animation:flipfront1 0.7s forwards;
  -moz-animation:   flipfront1 0.7s forwards;
  -o-animation:     flipfront1 0.7s forwards;
  animation:        flipfront1 0.7s forwards;
}
.info h3 {
  font-size:1.8rem;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:2px;
  margin-bottom:1rem;
}
.info .links {
  list-style-type:none;
  margin-top:1.2rem;
}
.info .links li a,
.info .links .shareButtons,
.info .links .shareButtons a {
  display:block;
}
.info .links li a {
  width:20%;
  height:1.8rem;
  float:left;
  text-align:center;
  background:black;
  color:white;
  text-decoration:none;
  line-height:1.8rem;
}
.info .links li a:hover {
  text-decoration:line-through;
}
.info .links li:first-child a {
  margin-right:2%;
}
.info .links .shareButtons {
  width:0%;
  height:1.8rem;
  overflow:hidden;
  -webkit-transition:all 0.2s;
  -moz-transition:   all 0.2s;
  -o-transition:     all 0.2s;
  transition:        all 0.2s;
}
.info .links .share:hover > .shareButtons {
  width:58%;
  -webkit-transition:all 1s;
  -moz-transition:   all 1s;
  -o-transition:     all 1s;
  transition:        all 1s;
}
.info .links .shareButtons a {
  width:2.5rem;
  float:left;
  background:transparent;
  color:rgba(0,0,0,0.7);
  -webkit-transition:all 0.2s;
  -moz-transition:   all 0.2s;
  -o-transition:     all 0.2s;
  transition:        all 0.2s;
}
.info .links .shareButtons a:hover {
  text-decoration:none;
  color:rgba(0,0,0,1);
  -webkit-transform:scale(1.3);
  -moz-transform:   scale(1.3);
  -o-transform:     scale(1.3);
  -ms-transform:    scale(1.3);
  transform:        scale(1.3);
}
/* move card to frontside */
@-webkit-keyframes flipfront1 {
  0%, 100% {-webkit-transform:translateX(0px);} 
  50%      {-webkit-transform:translateX(380px);}
}
@-moz-keyframes flipfront1 {
  0%, 100% {-moz-transform:translateX(0px);} 
  50%      {-moz-transform:translateX(380px);}
}
@-o-keyframes flipfront1 {
  0%, 100% {-o-transform:translateX(0px);} 
  50%      {-o-transform:translateX(380px);}
}
@keyframes flipfront1 {
  0%, 100% {transform:translateX(0px);} 
  50%      {transform:translateX(380px);}
}

/* move card to backside */
@-webkit-keyframes flipfront2 {
  0%, 100% {-webkit-transform:translateX(0px);} 
  50%      {-webkit-transform:translateX(380px);}
}
@-moz-keyframes flipfront2 {
  0%, 100% {-moz-transform:translateX(0px);} 
  50%      {-moz-transform:translateX(380px);}
}
@-o-keyframes flipfront2 {
  0%, 100% {-o-transform:translateX(0px);} 
  50%      {-o-transform:translateX(380px);}
}
@keyframes flipfront2 {
  0%, 100% {transform:translateX(0px);} 
  50%      {transform:translateX(380px);}
}

/* move img to backside */
@-webkit-keyframes flipback1 {
  0%       {z-index:999;background:rgba(250,250,210,0);}
  100%     {z-index:111;background:rgba(250,250,210,1);}
}
@-moz-keyframes flipback1 {
  0%       {z-index:999;background:rgba(250,250,210,0);}
  100%     {z-index:111;background:rgba(250,250,210,1);}
}
@-o-keyframes flipback1 {
  0%       {z-index:999;background:rgba(250,250,210,0);}
  100%     {z-index:111;background:rgba(250,250,210,1);}
}
@keyframes flipback1 {
  0%       {z-index:999;background:rgba(250,250,210,0);}
  100%     {z-index:111;background:rgba(250,250,210,1);}
}

/* move img to frontside */
@-webkit-keyframes flipback2 {
  0%       {z-index:111;background:rgba(250,250,210,1);}
  100%     {z-index:999;background:rgba(250,250,210,0);}
}
@-moz-keyframes flipback2 {
  0%       {z-index:111;background:rgba(250,250,210,1);}
  100%     {z-index:999;background:rgba(250,250,210,0);}
}
@-o-keyframes flipback2 {
  0%       {z-index:111;background:rgba(250,250,210,1);}
  100%     {z-index:999;background:rgba(250,250,210,0);}
}
@keyframes flipback2 {
  0%       {z-index:111;background:rgba(250,250,210,1);}
  100%     {z-index:999;background:rgba(250,250,210,0);}
}

html, body {background:Gainsboro;} 
            
          
!
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.

Console