Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <!-- 
Re-creation of a 1919 woodblock print by MC Escher, original here: 
https://s3-us-west-2.amazonaws.com/s.cdpn.io/348021/escher.png 
-->

<div class="outer--border">
  <div class="bar--left"></div>
  <div class="m"></div>
  <div class="c"></div>
  <div class="e"></div>
  <div class="table--top"></div>
  <div class="table--front"></div>
  <div class="cat cat--base"></div>
  <div class="cat cat--tail"></div>
  <div class="cat cat--middle"></div>
  <div class="cat cat--front"></div>
  <div class="cat cat--head"></div>
  <div class="cat cat--right--ear"></div>
  <div class="cat cat--left--ear"></div>
</div>

              
            
!

CSS

              
                * {
  box-sizing: border-box;
}

body {
  background: rgba(0,0,0,.1);
}

.outer--border {
  width: 361px;
  height: 560px;
  border: 30px solid white;
  background: black;
  background-size: cover;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  div {
    position: absolute;
  }
}

.bar--left,
.cat{
  background: white;
}

.bar--left {
  width: 57px;
  height: 316px;  
}

.table--top {
  width: 320px;
  height: 222px;
  bottom: -50px;
  background: repeating-linear-gradient(
		-45deg,
		white,
		white 25%,
		rgba(0,0,0,.0) 25%,
		rgba(0,0,0,.0) 50%,
		white 50%
	) top left;
	background-size: 70px 70px;
  border-radius: 25% 45% 0 0 ;
  transform: rotate(45deg) skewY(135deg) skewX(5deg);
}

.table--front {
    width: 357px;
    height: 81px;
    bottom: -20px;
    transform: skewY(3deg);
    background: repeating-linear-gradient(90deg, black, black 25%, white 25%, white 50%, black 50%) top left;
    background-size: 174px;
}

.cat--base {
  width: 140px;
  height: 80px;
  bottom: 100px;
  left: 100px;
  transform: skew(30deg, 10deg);
  border-radius: 40px 0 20px 0;  
}

.cat--tail {
  width: 140px;
  height: 50px;
  border-top: 3px solid black;
  border-bottom: 3px solid black;
  bottom: 100px;
  border-radius: 80% 0px;
  transform: rotate(-10deg) skew(10deg, 30deg);
  left: 120px;
  z-index: 1;
}

.cat--middle {
  width: 126px;
  height: 140px;
  bottom: 165px;
  left: 108px;
  transform: skewX(-13deg);
  border-radius: 20% 70% 00% 10%;
}

.cat--front {
    width: 159px;
    height: 213px;
    top: 108px;
    left: 77px;
    transform: rotate(33deg) skew(14deg, 40deg);
    border-right: 3px solid black;
    border-left: 5px solid black;
    border-bottom: 2px solid black;
    border-radius: 253% 69% 80% 200%;
}

.cat--head {
    width: 86px;
    height: 80px;
    top: 73px;
    left: 108px;
    border-bottom: 3px solid black;
    border-radius: 50px 30px;
}

.cat--right--ear {
    width: 32px;
    height: 84px;
    top: 44px;
    left: 165px;
    transform: skew(23deg, 46deg) rotate(33deg);
    border-radius: 5px 131px 56px 0;
}

.cat--left--ear {
    width: 23px;
    height: 24px;
    top: 70px;
    left: 126px;
    transform: rotate(25deg) skewY(10deg) skewX(30deg);
}

.m,
.c,
.e {
  width: 25px;
  height: 22px;
  background: #000;
}

.m {
   background: repeating-linear-gradient(
		90deg,
		black,
	  black 40%,
		white 40%,
		white 50%,
		black 50%
	) top left;
	background-size: 18px;
  border-top: 4px dashed black;
}

.c {
  top: 26px;
  background: repeating-linear-gradient(
		0deg,
		black,
	 black 50%,
    white 50%,
		white 55%,
		black 55%
	) bottom left;
	background-size: 20px;
  border-left: 12px solid black;
  border-top: 2px solid black;
}

.e {
  top: 52px;
  background: repeating-linear-gradient(
		0deg,
		black,
	 black 30%,
		white 30%,
		white 40%,
		black 50%
	) bottom left; 
	background-size: 11px;
  border-left: 12px solid black;
  border-top: 3px solid black;
}
              
            
!

JS

              
                
              
            
!
999px

Console