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.

            
              <p>The boxes <em>should</em> have the styles listed inside applied. Only listing the browsers I or others have actually tested in.</p>

<p>Works in <strong>Chrome 36-37</strong> (Windows 8) and <strong>Safari 7.1-8</strong> (OSX 10.9.5/ OSX Yosemite - see <a href='https://twitter.com/thebabydino/status/536161529184681984' target='_blank'>answers here</a>) for <em>everything not using angle units</em>.</p>

<p>Works for <em>everything</em> in <strong>Chrome 38+/ Opera 25+</strong> (Windows 8).</p>

<p>Works in <strong>Firefox 31-Firefox 36</strong> (Windows 8) <em>only for length units and percentages</em>. See <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=984021"target="_blank">bug 984021</a>, <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=956573"target="_blank">bug 956573</a>, <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=594933"target="_blank">bug 594933</a>.</p>

<p><em>None</em> of these works in <strong>IE11</strong> (Windows 8). See <a href="https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/653501/" target="_blank">this</a>.</p>

  
<div class='tests'>
  <div class='box'>background: rgb(0, calc(150 + 105), 0);</div>
  <div class='box'>background: hsl(calc(150 - 105), 100%, 50%);</div>
  <div class='box'>background: rgba(0, 255, 0, calc(.3 * 2));</div>
  <div class='box'>background: hsla(100, 100%, calc(51% / 3), .5);</div>
  <div class='box'>transform: translate(calc(45px + 27vmin), 3em);</div>
  <div class='box'>transform: scale(.5, calc(.8 / 4));</div>
  <div class='box'>transform: rotate(calc(45deg + 1.7327rad));</div>
  <div class='box'>transform: skew(calc(.5turn - 14grad));</div>
  <div class='box'>transform: rotateX(calc(.25turn - 13deg));</div>
  <div class='box'>transform: translateZ(calc(3em - 20vh));</div>
  <div class='box'>transform: rotate3d(0, .6, calc(-.6 - .2), 45deg);</div>
  <div class='box'>transform: matrix(1, calc(.6 / -3), 0, 1, 0, 0);</div>
  <div class='box'>transform: rotate3d(-1, 0, 0, calc(45deg - 2.31rad));</div>
</div>
            
          
!
            
              .tests {
  overflow: hidden;
  perspective: 25em;
}
.box {
  float: left;
  outline: solid .125em;
  margin: .5em .25em;
  width: 35em; height: 8em;
  font: 1em/8 monospace;
  text-align: center;
}

.box:nth-child(1) {
  background: rgb(0, calc(150 + 105), 0);
}
.box:nth-child(2) {
  background: hsl(calc(150 - 105), 100%, 50%);
}
.box:nth-child(3) {
  background: rgba(0, 255, 0, calc(.3 * 2));
}
.box:nth-child(4) {
  background: hsla(100, 100%, calc(51% / 3), .5);
}
.box:nth-child(5) {
  transform: translate(calc(45px + 27vmin), 3em);
}
.box:nth-child(6) {
  transform: scale(.5, calc(.8 / 4));
}
.box:nth-child(7) {
  transform: rotate(calc(45deg + 1.7327rad));
}
.box:nth-child(8) {
  transform: skewX(calc(.5turn - 14grad));
}
.box:nth-child(9) {
  transform: rotateX(calc(.25turn - 13deg));
}
.box:nth-child(10) {
  transform: translateZ(calc(3em - 20vh));
}
.box:nth-child(11) {
  transform: rotate3d(0, .6, calc(-.6 - .2), 45deg);
}
.box:nth-child(12) {
  transform: matrix(1, calc(.6 / -3), 0, 1, 0, 0);
}
.box:nth-child(13) {
  transform: rotate3d(-1, 0, 0, calc(45deg - 2.31rad));
}
            
          
!
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