Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                .ears
  #ear.right
    .row.pattern3
    .row.pattern4.move
    .row.pattern1
    .row.pattern2
    .row.pattern7
    .row.pattern3.move
  #ear.left.flip
    .row.pattern3
    .row.pattern4.move
    .row.pattern1
    .row.pattern2
    .row.pattern7
    .row.pattern3.move
#tusk.right.gradient
#tusk.left.flip.gradient
#head.pattern5
#nose
  .row
  .row.pattern4.move
  .row.pattern2
  .row.pattern1.move
  .row.pattern4
  .row.pattern1
#headdress
  .row.pattern1.move
  .row.pattern4

              
            
!

CSS

              
                $body:  #333;
$bg:    #eee;
$stroke: #444;
$border: solid $stroke 3px;

body {
  background: $body;
  line-height: 0%;
  min-width: 600px;
  -webkit-transform: scale(.8);
  -moz-transform: scale(.8);
  -o-transform: scale(.8);
  transform: scale(.8);
}

.row {
  height:50px;
}

.flip {
  -moz-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  transform: scaleX(-1);
  -ms-filter: fliph; /*IE*/
  filter: fliph; /*IE*/
}

/* ZENTANGLE PATTERNS */

.pattern1 {
  background: linear-gradient(135deg, $bg 25%, transparent 25%) -50px 0,
    linear-gradient(225deg, $bg 25%, transparent 25%) -50px 0,
    linear-gradient(315deg, $bg 25%, transparent 25%),
    linear-gradient(45deg, $bg 25%, transparent 25%);	
  background-size: 20px 20px;
  background-color: $stroke;
}

.pattern2 {
  background:
    radial-gradient(#fff 3px, transparent 5px, #fff 7px, transparent 9px, #fff 11px, transparent 13px, #fff 15px, transparent 17px, #fff 19px, transparent 21px, #fff 23px, transparent 25px, #fff 27px, transparent 29px, #fff 31px, transparent 33px);
  background-color: #111;
  background-size: 30px 30px;
}

.pattern3 {
  background: linear-gradient(63deg, #eee 23%, transparent 23%) 7px 0,
    linear-gradient(63deg, transparent 74%, $bg 78%),
    linear-gradient(63deg, transparent 34%, $bg 38%, $bg 58%, transparent 62%), $stroke;
  background-size: 16px 48px;
}

.pattern4 {
  background-color:silver;
  background-image: 
    radial-gradient(circle at 100% 150%, silver 24%, white 25%, white 28%, silver 29%, silver 36%, white 36%, white 40%, transparent 40%, transparent),
    radial-gradient(circle at 0    150%, silver 24%, white 25%, white 28%, silver 29%, silver 36%, white 36%, white 40%, transparent 40%, transparent),
    radial-gradient(circle at 50%  100%, white 10%, silver 11%, silver 23%, white 24%, white 30%, silver 31%, silver 43%, white 44%, white 50%, silver 51%, silver 63%, white 64%, white 71%, transparent 71%, transparent),
    radial-gradient(circle at 100% 50%, white 5%, silver 6%, silver 15%, white 16%, white 20%, silver 21%, silver 30%, white 31%, white 35%, silver 36%, silver 45%, white 46%, white 49%, transparent 50%, transparent),
    radial-gradient(circle at 0    50%, white 5%, silver 6%, silver 15%, white 16%, white 20%, silver 21%, silver 30%, white 31%, white 35%, silver 36%, silver 45%, white 46%, white 49%, transparent 50%, transparent);
  background-size:40px 20px;
}

.pattern5 {
  background-color: $bg;
  background-image: linear-gradient(transparent 50%, rgba(255,255,255,.5) 50%);
  background-size: 10px;
}

.pattern6 {
  background: -webkit-linear-gradient(60deg, rgb(153,153,153) 12%, rgba(0,0,0,0) 12.5%, rgba(0,0,0,0) 87%, rgb(153,153,153) 87.5%, rgb(153,153,153) 0), -webkit-linear-gradient(-60deg, rgb(153,153,153) 12%, rgba(0,0,0,0) 12.5%, rgba(0,0,0,0) 87%, rgb(153,153,153) 87.5%, rgb(153,153,153) 0), -webkit-linear-gradient(60deg, rgb(153,153,153) 12%, rgba(0,0,0,0) 12.5%, rgba(0,0,0,0) 87%, rgb(153,153,153) 87.5%, rgb(153,153,153) 0), -webkit-linear-gradient(-60deg, rgb(153,153,153) 12%, rgba(0,0,0,0) 12.5%, rgba(0,0,0,0) 87%, rgb(153,153,153) 87.5%, rgb(153,153,153) 0), -webkit-linear-gradient(30deg, rgb(187,187,187) 25%, rgba(0,0,0,0) 25.5%, rgba(0,0,0,0) 75%, rgb(187,187,187) 75%, rgb(187,187,187) 0), -webkit-linear-gradient(30deg, rgb(187,187,187) 25%, rgba(0,0,0,0) 25.5%, rgba(0,0,0,0) 75%, rgb(187,187,187) 75%, rgb(187,187,187) 0), rgb(170, 170, 170);
  background: -moz-linear-gradient(30deg, rgb(153,153,153) 12%, rgba(0,0,0,0) 12.5%, rgba(0,0,0,0) 87%, rgb(153,153,153) 87.5%, rgb(153,153,153) 0), -moz-linear-gradient(150deg, rgb(153,153,153) 12%, rgba(0,0,0,0) 12.5%, rgba(0,0,0,0) 87%, rgb(153,153,153) 87.5%, rgb(153,153,153) 0), -moz-linear-gradient(30deg, rgb(153,153,153) 12%, rgba(0,0,0,0) 12.5%, rgba(0,0,0,0) 87%, rgb(153,153,153) 87.5%, rgb(153,153,153) 0), -moz-linear-gradient(150deg, rgb(153,153,153) 12%, rgba(0,0,0,0) 12.5%, rgba(0,0,0,0) 87%, rgb(153,153,153) 87.5%, rgb(153,153,153) 0), -moz-linear-gradient(60deg, rgb(187,187,187) 25%, rgba(0,0,0,0) 25.5%, rgba(0,0,0,0) 75%, rgb(187,187,187) 75%, rgb(187,187,187) 0), -moz-linear-gradient(60deg, rgb(187,187,187) 25%, rgba(0,0,0,0) 25.5%, rgba(0,0,0,0) 75%, rgb(187,187,187) 75%, rgb(187,187,187) 0), rgb(170, 170, 170);
  background: linear-gradient(30deg, rgb(153,153,153) 12%, rgba(0,0,0,0) 12.5%, rgba(0,0,0,0) 87%, rgb(153,153,153) 87.5%, rgb(153,153,153) 0), linear-gradient(150deg, rgb(153,153,153) 12%, rgba(0,0,0,0) 12.5%, rgba(0,0,0,0) 87%, rgb(153,153,153) 87.5%, rgb(153,153,153) 0), linear-gradient(30deg, rgb(153,153,153) 12%, rgba(0,0,0,0) 12.5%, rgba(0,0,0,0) 87%, rgb(153,153,153) 87.5%, rgb(153,153,153) 0), linear-gradient(150deg, rgb(153,153,153) 12%, rgba(0,0,0,0) 12.5%, rgba(0,0,0,0) 87%, rgb(153,153,153) 87.5%, rgb(153,153,153) 0), linear-gradient(60deg, rgb(187,187,187) 25%, rgba(0,0,0,0) 25.5%, rgba(0,0,0,0) 75%, rgb(187,187,187) 75%, rgb(187,187,187) 0), linear-gradient(60deg, rgb(187,187,187) 25%, rgba(0,0,0,0) 25.5%, rgba(0,0,0,0) 75%, rgb(187,187,187) 75%, rgb(187,187,187) 0), rgb(170, 170, 170);
  background-position: 0 0, 0 0, 30px 60px, 30px 60px, 0 0, 30px 60px;
  background-size: 20px 40px;
}

.pattern7 {
  background-color: #ffffff;
  background-image: url("http://www.daisey.com/al/blog/floral.svg");

  background-repeat: repeat;
  background-size: 150px;
  background-position: 15px 85px;
}

.gradient {
  background: -moz-linear-gradient(top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0) 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */
}

/* BACKGROUND ANIMATION */

.move {
  -webkit-animation:BackgroundAnimated 15s linear infinite;
  -moz-animation:BackgroundAnimated 15s linear infinite;
  -ms-animation:BackgroundAnimated 15s linear infinite;
  -o-animation:BackgroundAnimated 15s linear infinite;
  animation:BackgroundAnimated 15s linear infinite;
}
@keyframes BackgroundAnimated {
  from {
    background-position:0 0
  }
  to {
    background-position:100% 0
  }
}
@-webkit-keyframes BackgroundAnimated {
  from {
    background-position:0 0
  }
  to {
    background-position:100% 0
  }
}
@-ms-keyframes BackgroundAnimated {    
  from {
    background-position:0 0
  }
  to {
    background-position:100% 0
  }
}
@-moz-keyframes BackgroundAnimated {
  from {
    background-position:0 0
  }
  to {
    background-position:100% 0
  }
}

#head {
  border-radius: 35%;
  background-size: 4px 8px;
  width: 250px;
  height: 300px;
  position: relative;
  left: 50%;
  margin-left: -125px;
  margin-top: -430px;

  -webkit-clip-path: polygon(49% 100%, 100% 30%, 81% 0, 20% 0, 0% 30%);
  clip-path: polygon(49% 100%, 100% 30%, 81% 0, 20% 0, 0% 30%);
}

#headdress {  
    content: "";
  width: 100px;
  height: 100px;
  position: relative;
  left: 50%;
  margin-left: -50px;
  margin-top: -268px;
  -webkit-clip-path: polygon(50% 100%, 0 0, 100% 0);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

#nose {
    content: "";
  border-radius: 20%;
  width: 100px;
  height: 1500px;
  -webkit-clip-path: polygon(15% 0, 89% 0, 60% 100%, 40% 100%);
  clip-path: polygon(15% 0, 89% 0, 60% 100%, 40% 100%);
  position: relative;
  left: 50%;
  margin-left: -53px;
  margin-top: -120px;

  &:before {
    content: "";
    background-color: $stroke;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    position: absolute;
    left: 25%;
    top: 0%; 
    margin-left: -5px;
    margin-top: -5px;
  }

  &:after {
    content: "";
    background-color: $stroke;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    position: absolute;
    left: 80%;
    top: 0%; 
    margin-left: -5px;
    margin-top: -5px;
  }
}

#tusk {
  content: "";
  border-radius: 20%;
  background-color: #fff;
  width: 210px;
  height: 250px;
  position: relative;
  left: 50%;
  margin-left: -105px;
  margin-top: -250px;

  -webkit-clip-path: polygon(29% 0, 12% 51%, 26% 100%, 25% 100%, 0% 50%, 12% 0);
  clip-path: polygon(29% 0, 12% 51%, 26% 100%, 25% 100%, 0% 50%, 12% 0);
}

.ears {
  height: 500px;
  width: 600px;
  margin: auto;
  position: relative;
}

#ear {
  border: $border;
  border-radius: 50%;
  width: 200px;
  height: 300px;
  position: relative;

  -webkit-clip-path: polygon(24% 6%, 34% 4%, 44% 3%, 51% 5%, 61% 7%, 70% 10%, 78% 12%, 83% 20%, 87% 26%, 92% 31%, 92% 45%, 88% 58%, 81% 64%, 79% 73%, 73% 82%, 63% 89%, 51% 89%, 40% 89%, 29% 86%, 19% 80%, 13% 68%, 11% 57%, 11% 43%, 10% 32%, 11% 19%, 14% 9%);
  clip-path: polygon(24% 6%, 34% 4%, 44% 3%, 51% 5%, 61% 7%, 70% 10%, 78% 12%, 83% 20%, 87% 26%, 92% 31%, 92% 45%, 88% 58%, 81% 64%, 79% 73%, 73% 82%, 63% 89%, 51% 89%, 40% 89%, 29% 86%, 19% 80%, 13% 68%, 11% 57%, 11% 43%, 10% 32%, 11% 19%, 14% 9%);
}

#ear.right {
  left: 325px;
  top: 55px;
}
#ear.left {
  left: 70px;
  top: -255px;
}

              
            
!

JS

              
                
              
            
!
999px

Console