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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <svg class="neopet" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 263.54 248.14">
  
    <g id="rightwing" class="wing">
    <path d="M246.36 97.73s-28.62 2.46-35.75 24.1c0 0-35.1-8-50.91 27.36 0 0-9.94-25.63-28.15-14.68 0 0 15.34-8.69 16.43-23.06 0 0 21.24 3.1 29-1s15.43-9.82 17.93-12.73 14-10.51 19.41-10.12 17.76-1.17 32.04 10.13z" fill="#a9dbef" stroke-miterlimit="10" stroke-width=".5" stroke="#000"/>
    <path d="M196 92.29s-3.2-3.89-7 .3-1.22 6.7.11 7.26c0 0-10.75 7.83-18 9.14-10.75 2.8-17.72-.15-22-1.35 0 0-5.92 0-1.26 3.2 12.64 9.2 36.77.74 44.19-7.58l.84-.9c2.79 1.09 9.19 5.31 18.05 21.69 0 0 4.4-12.38-11.56-27.69 14.81-11.58 29.54-8.72 51.26 3 .01.05-32.39-30.78-54.63-7.07z" fill="#a1a8c9" stroke-miterlimit="10" stroke-width=".75" stroke="#000"/>
    <path d="M181.78 87.43a44.27 44.27 0 0 1 4.92 7.15c1.7 3.36 4.18 2.13 5.5.77s1-2.95-.89-4.76-7.14-4.68-9.53-3.16z" fill="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5" stroke="#000"/>
  </g>
  <g id="leftwing" class="wing">
    <path d="M20.17 97.83s28.62 2.46 35.74 24.1c0 0 35.11-8 50.92 27.36 0 0 9.94-25.63 28.15-14.68 0 0-15.34-8.69-16.43-23.06 0 0-21.24 3.1-29-1s-15.39-9.86-17.89-12.77-14-10.51-19.41-10.11-17.8-1.14-32.08 10.16z" fill="#a9dbef" stroke-miterlimit="10" stroke-width=".5" stroke="#000"/>
    <path d="M70.57 92.39s3.2-3.89 7 .3 1.22 6.7-.11 7.26c0 0 10.75 7.83 18 9.14 10.74 2.81 17.72-.15 22-1.35 0 0 5.92 0 1.26 3.2-12.64 9.2-36.78.74-44.19-7.58-.28-.31-.56-.59-.84-.89-2.8 1.08-9.19 5.3-18 21.68 0 0-4.4-12.38 11.56-27.68-14.81-11.59-29.54-8.73-51.26 3-.1.05 32.3-30.78 54.58-7.08z" fill="#a1a8c9" stroke-miterlimit="10" stroke-width=".75" stroke="#000"/>
    <path d="M84.75 87.53a45.06 45.06 0 0 0-4.93 7.16c-1.69 3.35-4.17 2.12-5.49.76s-1-3 .89-4.76 7.13-4.69 9.53-3.16z" fill="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5" stroke="#000"/>
  </g>
  
  <path id="tail" d="M126.34 169.33s27.48 43 53.4 43 32.32-19.35 34.64-22.17-11.14 9.42-21.41 6.69-22.57-5.56-40.53-42.42c0 0-8-15-13.58-10.85s-22.19 9.86-12.52 25.75z" fill="#a1a8c9" stroke="#000" stroke-miterlimit="10" stroke-width=".75"/>
  
  <g id="body">
    <path d="M172.38 111.51c-.63-10.62-22.68-7.12-24-13s-26.14 2.25-26.14 2.25-23.67 2.33-29 9.33-.83 14.84 0 16.34 9.38 9.29 16.77 0l-1.6 5.83a39.05 39.05 0 0 0-8.88 29.25c1.75 18.13 12.13 16 12.13 16s-3.25 34 15.62 36.75c0 0 3 .88 4.25-1.5.57-1.08 1-4.32 1.14-9.17a5.74 5.74 0 0 0 3.74-.7c6.75-3.38 15.75-13.25 15.62-28.13 0 0 7.38-3.87 9-10.5a55.13 55.13 0 0 0-3.65-36.26s5 1.25 8.5-1.25 7.12-4.61 6.5-15.24zm-34.63 58.13s-3.78 4.72-6.43 8.69c-1.64-15.75-.94-14.82-.94-14.82a10 10 0 0 0 7.37-.75s-.87 5.13 0 6.88z" fill="#b7bcdc" stroke="#000" stroke-miterlimit="10" stroke-width=".75"/>
    <path id="leftfoot" d="M111.88 188.89s5.31 5.73 15.59 1.3l5 12.2s2 9.37-2.75 12-19.09-3.39-17.84-25.5z" fill="#a9dbef" stroke="#000" stroke-miterlimit="10" stroke-width=".75"/>
    <path id="rightfoot" d="M132.64 203.59c-12.7-1.67-1.32-25.26-1.32-25.26s14.93-4.44 17.87 8.43l.11 1.65s-7.52 16.38-16.66 15.18z" fill="#a9dbef" stroke="#000" stroke-miterlimit="10" stroke-width=".75"/>
    <path d="M137.75 169.64s1.75 3.5 3.63 3.75M108.71 144.36c0-.1 4 21.48 28.38 19M146.79 151s-8.38 6.88-9.25 12.38M116.52 115.14s-10.33 10.78-7.82 23.25M152.7 110s1.11 10.51 5 18.63" fill="none" stroke-linecap="round" stroke="#000" stroke-miterlimit="10" stroke-width=".75"/>
  </g>
  
  <g id="head">
    <path id="horn" d="M138.51 43.23s5.85-23.12 11-27.94-2 29.47-2 29.47-3.08 4.13-9-1.53z" fill="#a9dbef" stroke="#000" stroke-miterlimit="10" stroke-width=".75"/>
    <g id="face" fill="#b7bcdc" stroke="#000" stroke-miterlimit="10">
      <path id="face-2" d="M108.36 84.26s-3.17-3.33-.69-13.18 9.59-20.9 13.93-23.89 9.91-6.26 23.61-2.61S164.14 53.7 167 62.75s3.37 12.91-2.32 26.07c0 0 4.06 3.18 1.57 7.54s-11 16.49-29.47 15.64-28.61-11.94-31.22-20.22 2.8-7.52 2.8-7.52z" stroke-width=".75"/>
      <path id="right-eyebrow" d="M156 53.61a7 7 0 0 1 4.26 4.23" stroke-linecap="round"/>
      <path id="left-eyebrow" d="M124.21 53.25a7 7 0 0 0-5 3.23" stroke-linecap="round"/>
    </g>
    <g id="left-eye">
      <path d="M129.39 63.19s0 2.68-2.35 3.16c-9.9-6.37-13.36 1.4-13.36 1.4a8.42 8.42 0 0 1 7.23-5.08c5.66-.59 6.09 2.46 8.48.52z" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75"/>
      <path id="eye" d="M126.3 65.52c1.85 1.83 6.12 8.57-1.23 24.45a4.07 4.07 0 0 1-3.48.64c-1.82-.63-4.07-5-6.93-5.73 0 0-3-12.59-1.26-16.53s5.54-8.12 12.9-2.83z" fill="#fff" stroke="#000" stroke-miterlimit="10" stroke-width=".75"/>
      <path d="M121.48 74.32a7.61 7.61 0 0 1 7.14 3.3c0 1.09 0 2.18-.08 3.23 0 0-3.42 8.83-3.88 9.27s-3.14.42-3.14.42-4.23-4.28-6.41-5.5c-.07-.31-.13-.61-.17-.93-.66-4.83 2.27-9.22 6.54-9.79z"/>
      <circle cx="120.49" cy="81.05" r="1.35" fill="#fff"/>
      <path d="M119.66 86.21a4.57 4.57 0 0 0-.36 2.28 7.9 7.9 0 0 0 2.45 2.15 4 4 0 0 0 3.37-.61 52.7 52.7 0 0 0 2.14-5.29 4.59 4.59 0 0 0-1.33-.9 4.73 4.73 0 0 0-6.27 2.37z" fill="#fff"/>
      <path id="eye-2" d="M126.22 65.69c1.86 1.83 6.13 8.57-1.23 24.45a4.07 4.07 0 0 1-3.48.64c-1.81-.63-4.06-5-6.93-5.74 0 0-3-12.59-1.25-16.53s5.53-8.11 12.89-2.82z" fill="none" stroke="#000" stroke-miterlimit="10" stroke-width=".75"/>
    </g>
    <g id="right-eye">
      <path d="M153.39 65.74s-2.24 3.11.9 3.82 10.7 5 10.7 5a7.6 7.6 0 0 0-5.11-6c-4.77-1.78-4.83-.62-6.49-2.82z" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75"/>
      <path d="M162 70.18c-8.22-6.13-12.48 4.65-14.62 13.55 0 0 .29 3.34.59 6.16a3.6 3.6 0 1 1 6.46 3.18 3.53 3.53 0 0 1-.28.5c2.15-1.07 4.92-2.31 5.85-2.12 0 0 10.23-15.15 2-21.27z" fill="#fff" stroke="#000" stroke-miterlimit="10" stroke-width=".75"/>
      <path id="pupil" d="M156.05 79.47a7.65 7.65 0 0 0-7.79 1.16c-.3 1.05-.58 2.1-.83 3.12 0 0 .79 9.43 1.12 10s2.89 1.25 2.89 1.25 5.27-2.92 7.71-3.48q.22-.4.42-.84c1.98-4.42.43-9.46-3.52-11.21z" stroke="#000" stroke-miterlimit="10" stroke-width=".75"/>
      <path d="M152.69 88.14a3.67 3.67 0 0 0-4.69 1.75 32.65 32.65 0 0 0 .52 3.83c.29.54 2.9 1.29 2.9 1.29s1.22-.68 2.76-1.44a3.53 3.53 0 0 0 .28-.5 3.71 3.71 0 0 0-1.76-4.93z" fill="#fff" stroke="#000" stroke-miterlimit="10" stroke-width=".75"/>
      <circle cx="156.53" cy="86.42" r="1.35" fill="#fff"/>
    </g>
    <g id="sad" opacity="0" >
      <g id="sadeye">
        <path d="M149.24 67.53s1 5.91 6.09 8.33 8.15 3.93 8.72 7.88c.38.83 2.18-4.12 2.18-4.12l-1-9.36-4.74-4.26-7.68-3.08z" fill="#b7bcdc"/>
        <path d="M163.61 82.84s-.4-3.09-4.22-4.93c-7.12-3.39-8.81-5.6-9.58-8.58" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round"/>
      </g>
      <g id="sadeye-2">
        <path d="M132 66.2s-2.92 5.73-9 6.54-9.63 1.36-11.5 5.26c-.66.73-.88-4.93-.88-4.93s-.75-11.35 3.19-11.63 5.49-1.82 8.13-2.69 7.88 1.57 7.88 1.57z" fill="#b7bcdc"/>
        <path d="M112.25 77.19s1.41-3 5.93-3.67c8.4-1.16 10.86-2.86 12.62-5.67" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round"/>
      </g>
    </g>
    <g opacity="0" id="blink">
      <g id="closed_eye_right" data-name="closed eye right">
        <path fill="#b7bcdc" d="M144.9 64.23l1.95 33.69 15.14-3.47 4.18-28.06-21.27-2.16z"/>
        <path d="M147.55 93.9l-1.16-10.1s3.23-16.8 11.49-15.54 8.42 13.06 1.58 22.88a39.57 39.57 0 0 1-8.12 2.44z" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75"/>
        <path d="M161.93 92.92s-.33-3.3-3.19-1.81a77.54 77.54 0 0 1-11.21 3s2.45.79 7.54-.52c4.83-1.82 4.83-1.82 6.86-.67z" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75"/>
      </g>
      <g id="closed_eye_left" data-name="closed eye left">
        <path d="M137.16 66c-.83 4.8-15.44 25.86-13.16 28.1s-14.31-8.23-14.31-8.23l4-28.23S138 61.22 137.16 66z" fill="#b7bcdc"/>
        <path d="M124.47 90l4.12-9.29s1.65-17.18-7.1-18.61-12.32 9.77-8.27 21.39a44.3 44.3 0 0 0 7.5 5z" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75"/>
        <path d="M110.19 84.44s1.3-3.06 3.77-.71a88.12 88.12 0 0 0 10.48 6.47s-2.71 0-7.48-2.94c-4.38-3.26-4.38-3.26-6.77-2.82z" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75"/>
      </g>
    </g>
    <path id="nose" d="M125 90.14s11.22-3.92 20.08 1.7" fill="none" stroke="#000" stroke-linecap="round" stroke-miterlimit="10" stroke-width=".75"/>
    <path id="sad_mouth" opacity="0" d="M121.41 103s10.06.39 13.18 2.72" fill="none" stroke="#000" stroke-linecap="round" stroke-miterlimit="10"/>
    <g id="happy_mouth" fill="none" stroke="#000" stroke-linecap="round" stroke-miterlimit="10" stroke-width=".75">
      <path d="M116.45 93.81a11.1 11.1 0 0 0 3 1.45 2.11 2.11 0 0 0 2.31-.44M127.61 105.44s-9.83-3.89-8.13-10.18"/>
    </g>
  </g>
  
</svg>
              
            
!

CSS

              
                body {
  background-color: #acd2ec;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/756881/Artboard%206.svg");
  background-size: cover;
}

.neopet {
  height: 90vh;
}

.wing {
  transform-box: fill-box;
  animation-duration: .3s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

#leftwing {
  transform-origin: top right;
  animation-name: flap-left;
}

@keyframes flap-left {
  from {
    transform: rotate(50deg);
  }
  to {
    transform: rotate(-10deg);
  }
}

#rightwing {
  transform-origin: top left;
  animation-name: flap-right;
}

@keyframes flap-right {
  from {
    transform: rotate(-50deg);
  }
  to {
    transform: rotate(10deg);
  }
}

.neopet {
  height: 80vh;
  transform-box: fill-box;
  animation-duration: .3s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
  animation-name: fly;
}


@keyframes fly {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-10px);
  }
}

#blink {
  transform-box: fill-box;
  transform-origin: top left;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-direction: normal;
  animation-name: blink;
  opacity: 0;
  animation-fill-mode:forwards;
}


@keyframes blink {
  0% , 94% {
    opacity: 0;
  }
  95%, 100% {
    opacity: 1;
  }
}

#tail {
  transform-box: fill-box;
  animation-duration: .3s;
  animation-name: waggle;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
}


@keyframes waggle {
  0%{
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(5deg);
  }
}


@keyframes animatedBackground {
	from { background-position: 0 0; }
	to { background-position: 1956.5% 0; }
}
              
            
!

JS

              
                
              
            
!
999px

Console