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 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="title">
  <span class="title">
    <h3>Shadow recreation of z-depth</h3>

<div class="centerWrap">
  <ul class="paperList">
    <li><div class="square">
      <span class="label">z-depth = 1</span>
      <div class="paper-shadow z1-top"></div>
      <div class="paper-shadow z1-bot"></div>
    <li><div class="square">
      <span class="label">z-depth = 2</span>
      <div class="paper-shadow z2-top"></div>
      <div class="paper-shadow z2-bot"></div>
    <li><div class="square">
      <span class="label">z-depth = 3</span>
      <div class="paper-shadow z3-top"></div>
      <div class="paper-shadow z3-bot"></div>
    <li><div class="square">
      <span class="label">z-depth = 4</span>
      <div class="paper-shadow z4-top"></div>
      <div class="paper-shadow z4-bot"></div>
    <li><div class="square">
      <span class="label">z-depth = 5</span>
      <div class="paper-shadow z5-top"></div>
      <div class="paper-shadow z5-bot"></div>
              div.title{width:100%;height:140px;background-color:#6a1b9a;margin-bottom:30px;box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.22);}
span.title{width:300px;text-align:center;position:absolute;left:0;right:0;margin:0 auto;color:#e7e9fd;}
.centerWrap{width:300px;display:block;margin:0 auto; position:absolute; right:0; left:0;}


.z1-top{box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.16);}
.z1-bot{box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);}

.z2-top{box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.19);}
.z2-bot{box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);}

.z3-top{box-shadow: 0 17px 50px 0 rgba(0, 0, 0, 0.19);}
.z3-bot{box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24);}

.z4-top{box-shadow: 0 25px 55px 0 rgba(0, 0, 0, 0.21);}
.z4-bot{box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.22);}

.z5-top{box-shadow: 0 40px 77px 0 rgba(0, 0, 0, 0.22);}
.z5-bot{box-shadow: 0 27px 24px 0 rgba(0, 0, 0, 0.2);}
This pen serves as a repository for the shadow stylings of Google Polymers paper-elements base styles.

The Polymer paper-elements demo can be found here:

I also referenced the Google Design Style Guide:

twitter: @championjared
Loading ..................