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


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <h1>CSS3 3D Transform examples</h1>
<div class="container">
  <div class="transform translate3d"><h4>translate3d(20px,20px,20px)</h4></div>
<div class="container">
  <div class="transform scale3d"><h4>scale3d(0,0,1)</h4></div>
<div class="container">
  <div class="transform  rotate3d"><h4>rotate3d(1, .5, 1, -30deg)</h4></div>

<div class="container">
  <div class="transform  rotateX"><h4>rotateX(180deg)</h4></div>
  <div class="container">
  <div class="transform  rotateY"><h4>rotateY(180deg)</h4></div>
  <div class="container">
  <div class="transform  rotateZ"><h4>rotateZ(180deg)</h4></div>


                @import url(;
body {
  margin: 0;
  text-align: center;
  background: #F4F1F8;
h1 {
  font-family: 'Sigmar One', cursive;
  color: #FFC84D;
h4 {
  font-family: monospace;
section {
  display: block;
  width: 660px;
  margin: 0 auto;
div {
  height: 120px;
  width: 220px;  
.container {
  position: relative;
  display: inline-block;
  height: 120px;
  margin: 0 2em 2em 0;
  opacity: .7;
  border-radius: 5px;
  background: #E4E1E4;
  -webkit-perspective: 400px;
  perspective: 400px;
  -webkit-transform-style: preserve-3d; 
  transform-style: preserve-3d;
.transform {
  position: absolute;
  bottom: 0;
  background: rgba(65, 245, 254, .5);
  border-radius: 5px;
  -webkit-animation: notransform 5s infinite;
  animation: notransform 5s infinite;
.translate3d {
  -webkit-transform: translate3d(20px,20px,20px);
  -ms-transform: translate3d(20px,20px,20px);
  transform: translate3d(20px,20px,20px);
.scale3d {
  -webkit-transform: scale3d(0,0,1);
  -ms-transform: scale3d(0,0,1);
  transform: scale3d(0,0,1);
  -webkit-animation-delay: .5s;
  animation-delay: .5s;
.rotate3d {
  -webkit-transform: rotate3d(1, .5, 1, -30deg);
  -ms-transform: rotate3d(1, .5, 1, -30deg);
  transform: rotate3d(1, .5, 1, -30deg);
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
.rotateX {
  -webkit-transform: rotateX(180deg);
 -ms-transform: rotateX(180deg);
  transform: rotateX(180deg);
   -webkit-animation-delay: 1.5s;
  animation-delay: 1.5s;
.rotateY {
  -webkit-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  transform: rotateY(180deg);
  -webkit-animation-delay: 2s;
  animation-delay: 2s;
.rotateZ {
  -webkit-transform: rotateZ(180deg);
  -ms-transform: rotateZ(180deg);
  transform: rotateZ(180deg);
  -webkit-animation-delay: 2.5s;
  animation-delay: 2.5s;
@-webkit-keyframes notransform {
  50% {transform: none;}
@keyframes notransform {
  50% {transform: none;}