cssAudio - ActiveCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

              <svg viewBox="0 0 500 500" tabIndex="0">
    <symbol id="creature" viewBox="0 0 100 100"
      <g id="body">
        <path d="M80,85 C85,90 75,90 60,92S 60,85 67,83
                 C50,70 60,60 65,60" 
        <path id="limb" d="M33,80C28,85 28,95 24,94 S20,85 27,77"/>
        <ellipse cx="45" cy="65" rx="40" ry="20"/>
        <path d="M30,45C70,30 85,50 90,70 C92.5,80 85,83 80,85
                 C85,90 75,90 60,92S 60,85 67,83
                 C50,70 60,60 65,60" />
        <use xlink:href="#limb" x="4" y="2"/>
        <path d="M40,70C30,85 0,85 0,60 C0,50 5,45 10,40
                 C0,30 0,0 5,0S20,25 20,35 Q22,34 25,35
                 C25,25 30,-2 35,0 S38,28 35,38 C40,42 43,45 45,55" />
        <path fill="white" stroke="lightGray"
              d="M89,72c-2,-5 9,-7 8,-2 
                 c1,3 -3,9 -5,7 c-1,3 -4,5 -5,-2"
      <g id="face">
        <g fill="lightSalmon" fill-opacity="0.75" stroke="none">
          <ellipse ry="15" rx="4"
          <ellipse ry="14" rx="3"
        <path fill="pink" stroke="lightCoral" stroke-linejoin="round"
              d="M12,65L17,65 15,69 Q17,72 20,70 Q15,73 10,70
                 Q13,72 15,69Z" />
        <g class="eyes">
          <g fill="white" stroke="none">
            <ellipse ry="7" rx="5" cx="10" cy="55"/>
            <ellipse ry="7" rx="5" cx="20" cy="55"/>
          <g fill="#222" stroke="#444" stroke-width="0.5">
            <ellipse ry="3" rx="2.5" cx="10" cy="58"/>
            <ellipse ry="3" rx="2.5" cx="20" cy="58"/>
  <g class="dark">
    <use xlink:href="#creature" 
         stroke="silver" fill="gray" 
         width="80" height="80" x="300" y="20"/>
    <use xlink:href="#creature" 
         stroke="brown" fill="beige" 
         width="100" height="100" x="50" y="20"/>
    <use xlink:href="#creature" 
         stroke="chocolate" fill="saddleBrown" 
         width="100" height="100" x="400" y="100"/>
    <use xlink:href="#creature" 
         stroke="lightSteelBlue" fill="gray" 
         width="120" height="120" x="200" y="120"/>
    <use xlink:href="#creature" 
         stroke="chocolate" fill="peru" 
         width="120" height="120" x="50" y="150"/>
    <use xlink:href="#creature" 
         stroke="tan" fill="beige" 
         width="140" height="140" x="350" y="170"/>
    <use xlink:href="#creature" 
         stroke="slateGray" fill="#444" 
         width="150" height="150" x="70" y="300"/>
    <use xlink:href="#creature" 
         stroke="sienna" fill="chocolate" 
         width="160" height="160" x="340" y="330"/>
              body {
  margin: 0;
  padding: 0;
  background-color: #444;
svg {
  display: block;
  height: 100vmin;
  width: 100vmin;
  background-color: black;
  margin: auto;
.dark {
  visibility: hidden;
.eyes {
  visibility: visible;
svg:hover, svg:focus {
  background-color: lightgreen;
  transition: all 0.3s;
svg:hover .dark, svg:focus .dark {
  visibility: visible;

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................