Pen Settings



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


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


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.


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.


                <svg id="tree" xmlns="" version="1.1" id="Layer_1" x="0" y="0" viewBox="-1694.2 483.2 199.3 285.2" xml:space="preserve">
  <style type="text/css">

  <g id="tree">
    <rect x="-1605.6" y="697.1" class="st0" width="21.7" height="71.3"/>
    <polygon class="st1" points="-1656.1 616.8 -1634.8 612 -1670.6 676.1 -1648.5 671.1 -1694.2 753 -1595 730.5 -1595 507.4 "/>
    <polygon class="st2" points="-1494.9 753 -1540.6 671.1 -1518.5 676.1 -1554.4 612 -1533.1 616.8 -1594.7 506.8 -1595 507.4 -1595 730.5 -1594.7 730.4 "/>
  <g id="lights">
    <g id="blue-lt">
      <circle class="blue-lt g1" cx="-1575" cy="706.1" r="9"/>
      <circle class="blue-lt g2" cx="-1621.3" cy="641" r="7"/>
      <circle class="blue-lt g3" cx="-1665.5" cy="732.8" r="7"/>
      <circle class="blue-lt g1" cx="-1600.3" cy="668.5" r="7"/>
    <g id="blue-dk">
      <circle class="blue-dk g3" cx="-1578.3" cy="570.8" r="7"/>
      <circle class="blue-dk g1" cx="-1538" cy="718.6" r="7"/>
      <circle class="blue-dk g2" cx="-1594.8" cy="610.3" r="7"/>
    <g id="red">
      <circle class="red g1" cx="-1635.6" cy="681.7" r="9"/>
      <circle class="red g1" cx="-1570.3" cy="634" r="9"/>
      <circle class="red g2" cx="-1607.3" cy="711.6" r="7"/>
    <g id="gold-lt">
      <circle class="gold-lt g1" cx="-1612.3" cy="585.8" r="9"/>
      <circle class="gold-lt g2" cx="-1631.6" cy="705.6" r="7"/>
    <g id="gold-dk">
      <circle class="gold-dk g2" cx="-1572.3" cy="604.7" r="7"/>
      <circle class="gold-dk g3" cx="-1561.3" cy="681.7" r="7"/>
  <polygon class="st6" points="-1600.5 499.9 -1618.1 499.9 -1603.8 510.3 -1609.3 527 -1595 516.7 -1595 483.2 "/>
  <polygon class="st7" points="-1572 499.9 -1589.6 499.9 -1595 483.2 -1595 516.7 -1580.8 527 -1586.2 510.3 "/>


                *, html {
	box-sizing: border-box;

body {
	padding: 2em;

#tree {
	max-width: 300px;
	display: block;
	margin: 0 auto;

$colors: (
  red: #EA385C,
  gold-lt: #E7B75C,
  blue-lt: #386FB1,
	blue-dk: #28527C,
	gold-dk: #B28947

@each $name, $color in $colors {
  .#{$name} {
    fill: darken($color, 20%);
		@keyframes #{$name}-flash {
			40% { fill: darken($color, 0%);	}
			80% { fill: darken($color, 20%); }
		animation: .6s #{$name}-flash ease-in-out infinite;

$timings: (
	g1: 0s,
	g2: .4s,
	g3: .8s

@each $timing-name, $timing in $timings {
  .#{$timing-name} {
		animation-delay: $timing;