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="animated-svg" width="226.09" height="199.77">
  <g class="animated-svg-step1">
    <linearGradient id="a" gradientUnits="userSpaceOnUse" x1="179.11" y1="41.88" x2="40.77" y2="180.21"><stop offset="0" stop-color="#c386f8"/>
      <stop offset="1" stop-color="#645ee9"/>
    </linearGradient>
    <path fill="url(#a)" d="M54.74 41.35c-8.2 0-14.84 6.64-14.84 14.83v109.98c0 8.2 6.65 14.84 14.84 14.84h110.14c8.2 0 14.84-6.65 14.84-14.84V56.2c0-8.2-6.65-14.84-14.84-14.84H54.74z"/>
    <path fill="#5E58D6" d="M39.9 56.19v109.97c0 6.77 4.54 12.46 10.72 14.25V54.36a2.3 2.3 0 0 1 2.3-2.3h126.2a14.83 14.83 0 0 0-14.24-10.7H54.74c-8.2 0-14.83 6.63-14.83 14.83"/>
    <path fill="none" stroke="#5E58D6" stroke-width=".53" stroke-miterlimit="10" d="M86.56 180.59V41.35M133.14 41.35V181"/>
    <path fill="#5E58D6" d="M84.39 132.64h4.08v4.08h-4.08zM84.39 86.07h4.08v4.08h-4.08zM131.09 86.07h4.08v4.08h-4.08z"/>
    <path fill="none" stroke="#524BEF" stroke-width=".53" stroke-miterlimit="10" d="M67.73 88.11H57"/>
    <path fill="none" stroke="#5E58D6" stroke-width=".53" stroke-miterlimit="10" d="M179.71 88.11H49.55M179.71 134.88H50.6"/>
    <path fill="none" stroke="#675FE9" stroke-width=".55" stroke-miterlimit="10" d="M86.56 52.07V41.35M133.14 52.07V41.35M50.62 88.11H39.91M50.62 134.88H39.91"/>
  </g>
  <g class="animated-svg-pencil">
    <path fill="#A7F0E0" d="M26.37 107.6l74.6 74.59.27 17.58-17.57-.28-74.6-74.6z"/>
    <path fill="#1ACCBD" d="M92.34 190.82l-8.67 8.67-74.6-74.6 8.67-8.67z"/>
    <path fill="#FFF" d="M101 182.21l-8.8-.13.15 8.79z"/>
    <path fill="#FFF" d="M100.97 182.19l.28 17.58-17.58-.28z"/>
    <path fill="#1ACCBD" d="M7.38 123.2l17.3-17.3 3.3 3.3-17.3 17.3z"/>
    <path fill="#F37DBB" d="M11.22 100.11l-9.63 9.63a5.43 5.43 0 0 0 0 7.68l5.8 5.79 17.3-17.3-5.8-5.8a5.43 5.43 0 0 0-7.67 0"/>
    <path fill="#E0E0E0" d="M83.56 190.73l.1 8.76 17.59.28-8.8-8.8z"/>
    <path fill="#5E58D6" d="M101.25 193.9v5.87h-5.87"/>
  </g>
  <g class="animated-svg-pencil-lines" fill="#CED8D8">
    <path d="M120.56 197.58h-19.32v2.19h19.32a1.1 1.1 0 0 0 0-2.2M135.44 197.58h-9.08a1.1 1.1 0 1 0 0 2.19h9.08a1.1 1.1 0 0 0 0-2.2"/>
  </g>
  <g class="animated-svg-step3">
    <path fill="#5E58D6" d="M138.09 70.96c-4.93 0-8.92 4-8.92 8.92v58.74c0 9.01 7.31 16.32 16.33 16.32h34.22V70.96h-41.63z"/>
    <path fill="#A7F0E0" d="M217.17 143.66h-66.23c-4.93 0-8.92-4-8.92-8.93V68.6c0-4.92 3.99-8.92 8.92-8.92h66.23c4.93 0 8.92 4 8.92 8.92v66.14c0 4.93-3.99 8.93-8.92 8.93"/>
    <path fill="#1ACCBD" d="M166.97 99.6a17.08 17.08 0 1 0 34.16.01 17.08 17.08 0 0 0-34.16 0M184.05 118.45c-17.18 0-32.35 7.48-41.64 18.91a8.92 8.92 0 0 0 8.52 6.3h66.24c4.01 0 7.4-2.65 8.53-6.3-9.3-11.43-24.47-18.9-41.65-18.9"/>
    <path opacity=".6" fill="#FFF" d="M142.01 105.3l45.53-45.53h-21.88l-23.65 23.35z"/>
  </g>
  <g class="animated-svg-step4" fill="#CED8D8">
    <path d="M173.72 10.78V10h-1.62v.78c-.1 2.01-1.02 7.2-7.98 7.2V19.6c6.96 0 7.88 5.2 7.98 7.2v.79h1.62v-.78c.1-2.01 1.02-7.2 7.98-7.2V17.98c-6.96 0-7.88-5.2-7.98-7.2M200.68 32.24v-.78h-1.62v.78c-.1 2.01-1.02 7.2-7.98 7.2V41.07c6.96 0 7.88 5.2 7.98 7.2v.79h1.62v-.78c.1-2 1.02-7.2 7.98-7.2V39.45c-6.96 0-7.88-5.2-7.98-7.2"/>
  </g>
</svg>

<svg class="animated-svg" width="241.74" height="182.39">
  <g class="animated-svg-step1">
    <path fill="#5050C9" d="M77.5 182.34l100.29-12.08a6.18 6.18 0 0 0 5.4-6.88L167.6 34.11a6.18 6.18 0 0 0-6.88-5.4L60.45 40.79a6.18 6.18 0 0 0-5.4 6.88l15.57 129.28a6.18 6.18 0 0 0 6.88 5.4"/>
    <linearGradient id="a" gradientUnits="userSpaceOnUse" x1="182.44" y1="24.66" x2="81.96" y2="167.48">
      <stop offset="0" stop-color="#c386f8"/>
      <stop offset="1" stop-color="#645ee9"/>
    </linearGradient>
    <path fill="url(#a)" d="M167.76 27.86L67.47 39.95c-3.4.4-5.8 3.48-5.4 6.87L77.65 176.1c.4 3.39 3.48 5.8 6.88 5.4L184.8 169.4c3.4-.4 5.81-3.48 5.4-6.87L174.63 33.26a6.19 6.19 0 0 0-6.87-5.4"/>
    <path fill="#5050C9" d="M178.36 158.78l-90.88 10.95L73.15 50.75l90.88-10.95z"/>
    <path fill="#FFF" d="M114.46 166.49l63.9-7.7-14.34-119-90.89 10.95 11.1 92a27.18 27.18 0 0 0 30.23 23.75"/>
    <path fill="#5050C9" d="M140.47 28.61l-48.2 5.8a13.92 13.92 0 0 0-12.15 15.5l75.84-9.14a13.92 13.92 0 0 0-15.49-12.16"/>
    <path fill="#5050C9" d="M104.3 32.97a12.17 12.17 0 1 0 24.15-2.91 12.17 12.17 0 0 0-24.15 2.91"/>
    <path fill="#FFF" d="M111.97 32.05a4.43 4.43 0 1 0 8.8-1.07 4.43 4.43 0 0 0-8.8 1.07"/>
    <path fill="#E0E0E0" d="M89.09 77.67l36.3-4.37a1.47 1.47 0 1 1 .35 2.9l-36.3 4.38a1.47 1.47 0 0 1-.35-2.91M88.03 68.91l65.52-7.9a1.47 1.47 0 0 1 .35 2.92l-65.52 7.9a1.47 1.47 0 0 1-.35-2.92M92.7 107.6l36.29-4.38a1.47 1.47 0 0 1 .35 2.92l-36.3 4.37a1.47 1.47 0 0 1-.35-2.92M96.32 137.5l36.3-4.38a1.47 1.47 0 0 1 .35 2.91l-36.3 4.38a1.47 1.47 0 0 1-.35-2.92M91.64 98.84l65.52-7.9a1.47 1.47 0 0 1 .35 2.92l-65.52 7.9a1.47 1.47 0 0 1-.35-2.92"/>
  </g>
  <g class="animated-svg-pencil2">
    <path fill="#A7F0E0" d="M197.73 32.43l-75.78 73.4-.57 17.57h17.6l75.78-73.39z"/>
    <path fill="#FFF" d="M138.94 123.41h.03l-.03-.03.28-8.73h-8.74l-.05-.06.28-8.73h-8.74l-.03-.03v.03h-.02l.02.03-.55 17.52h17.53l.02.03z"/>
    <path fill="#1ACCBD" d="M216.46 48.36l-17.02-17.58-3.35 3.24 8.48 8.77-74.14 71.8 8.54 8.82 74.14-71.8z"/>
    <path fill="#F37DBB" d="M213 25.2l9.47 9.79a5.43 5.43 0 0 1-.12 7.67l-5.89 5.7-17.02-17.58 5.88-5.7a5.43 5.43 0 0 1 7.68.12"/>
    <path fill="#E0E0E0" d="M139.22 114.65l-.25 8.76H121.4l9.04-8.82z"/>
    <path fill="#5E58D6" d="M121.57 117.55l-.18 5.86 5.86.09"/>
  </g>
  <g class="animated-svg-step3">
    <path fill="#F37DBB" d="M161.48 160.81a21.25 21.25 0 1 0 42.2-5.08 21.25 21.25 0 0 0-42.2 5.08"/>
    <path fill="#FFF" d="M180.18 164.72l-5.9-5.86 1.8-1.8 4.1 4.04 9.27-9.28 1.82 1.81z"/>
  </g>
  <g class="animated-svg-step4" fill="#CED8D8">
    <path d="M20.78 45.48l-.78.02.03 1.62.78-.02c2 .06 7.22.9 7.35 7.85h.56l.48-.02h.57c-.12-6.97 5.05-7.99 7.06-8.12l.78-.01-.03-1.62-.78.01c-2-.06-7.22-.89-7.35-7.85l-.57.01-.47.01-.57.01c.12 6.96-5.05 7.98-7.06 8.12M41.75 18.14l-.78.01.03 1.62.78-.01c2 .06 7.22.89 7.34 7.85l.57-.01.48-.01.57-.01c-.13-6.96 5.05-7.98 7.06-8.11l.78-.02-.03-1.62-.78.02c-2.01-.06-7.22-.9-7.35-7.85h-.57l-.48.02h-.57c.13 6.97-5.05 7.98-7.05 8.12"/>
  </g>
</svg>

<svg class="animated-svg" width="244.7" height="168.82">
  <g class="animated-svg-step1">
    <linearGradient id="e" gradientUnits="userSpaceOnUse" x1="32.68" y1="93.51" x2="148.15" y2="93.51">
      <stop offset="0" stop-color="#c386f8"/>
      <stop offset="1" stop-color="#645ee9"/>
    </linearGradient>
    <path fill="url(#e)" d="M32.69 93.5a57.45 57.45 0 0 0 9.6 31.88h-.02l-5.7 21.86 22.64-5.17A57.73 57.73 0 1 0 32.68 93.5"/>
    <path fill="#5E58D6" d="M66.36 95.1a4.65 4.65 0 1 0 9.31 0 4.65 4.65 0 0 0-9.3 0M83.48 95.1a4.65 4.65 0 1 0 9.31 0 4.65 4.65 0 0 0-9.3 0M100.6 95.1a4.65 4.65 0 1 0 9.31 0 4.65 4.65 0 0 0-9.3 0"/>
  </g>
  <g class="animated-svg-bubble">
    <path fill="#F37DBB" d="M229 76.27a57.73 57.73 0 1 0-25.86 48.13l-.01.02 21.87 5.7-5.18-22.65c5.8-9 9.17-19.7 9.17-31.2"/>
    <path class="animated-svg-dot1" fill="#F5F7F7" d="M149.484,77.947c0,2.57,2.083,4.654,4.654,4.654c2.57,0,4.654-2.084,4.654-4.654 c0-2.57-2.084-4.654-4.654-4.654C151.567,73.293,149.484,75.377,149.484,77.947"/>
		<path class="animated-svg-dot2" fill="#F5F7F7" d="M166.606,77.947c0,2.57,2.083,4.654,4.654,4.654c2.57,0,4.654-2.084,4.654-4.654 c0-2.57-2.084-4.654-4.654-4.654C168.689,73.293,166.606,75.377,166.606,77.947"/>
		<path class="animated-svg-dot3" fill="#F5F7F7" d="M183.729,77.947c0,2.57,2.083,4.654,4.654,4.654c2.57,0,4.654-2.084,4.654-4.654 c0-2.57-2.084-4.654-4.654-4.654C185.812,73.293,183.729,75.377,183.729,77.947"/>
  </g>
  <g class="animated-svg-step4" fill="#CED8D8">
    <path d="M148.96 152.02v-.78h-1.62v.78c-.1 2-1.02 7.2-7.98 7.2V160.84c6.96 0 7.88 5.2 7.98 7.2v.78h1.62v-.78c.1-2 1.02-7.2 7.98-7.2V159.22c-6.96 0-7.88-5.2-7.98-7.2M226.72 10.78V10h-1.62v.78c-.1 2-1.02 7.2-7.98 7.2V19.6c6.96 0 7.89 5.2 7.98 7.2v.78h1.62v-.78c.1-2 1.02-7.2 7.98-7.2V17.98c-6.96 0-7.88-5.2-7.98-7.2M19.6 49.13v-.79h-1.62v.78c-.1 2.01-1.02 7.2-7.98 7.2v1.63c6.96 0 7.89 5.2 7.98 7.2v.78h1.62v-.78c.1-2 1.02-7.2 7.98-7.2V56.33c-6.96 0-7.88-5.2-7.98-7.2"/>
  </g>
</svg>


              
            
!

CSS

              
                body {
  align-items: center;
  display: flex;
  justify-content: center;
}

svg {
  padding: 50px;
}

.animated-svg g {
  opacity: 0;
}

.animated-svg-step1,
.animated-svg-step3,
.animated-svg-step4 {
  animation: enter .25s forwards, breathe 3s alternate infinite;
}

.animated-svg-step3 {
  animation-delay: 1s, -1s;
}

.animated-svg-step4 {
  animation-delay: 1.5s, -2s;
}

.animated-svg-pencil-lines {
  animation: enter .25s .5s forwards;
}

.animated-svg-pencil,
.animated-svg-pencil2,
.animated-svg-bubble {
  animation: enter .25s .5s forwards, rotate 3s alternate infinite;
}

.animated-svg-pencil {
  transform-origin: bottom;
}

.animated-svg-pencil2 {
  transform-origin: center 65%;
}

.animated-svg-bubble {
  transform-origin: 65%;
}

.animated-svg-dot1,
.animated-svg-dot2,
.animated-svg-dot3 {
  animation: enter .25s forwards;
  opacity: 0;
}

.animated-svg-dot1 {
  animation-delay: .5s;
}

.animated-svg-dot2 {
  animation-delay: .8s;
}

.animated-svg-dot3 {
  animation-delay: 1s;
}


@keyframes rotate {
  to {
    transform: rotate(5deg);
  }
}

@keyframes enter {
  to {
    opacity: 1;
  }
}

@keyframes breathe {
  to {
    transform: translateY(-5px);
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console