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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <link href="https://fonts.googleapis.com/css?family=Cookie" rel="stylesheet">

<div class="container">
  <h1>Happy Solstice</h1>
  <div class="wrapper3"></div>
  <div class="wrapper2"></div>
  <div class="wrapper1">
    <svg version="1.2" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 600 600" xml:space="preserve">

    <path class="path1" fill="none" stroke="#38FF00" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
      M269.17,86c0,0-0.83-11,9-10c9.83,1,8.5,12.17,6.5,14.67s-9.83,9.5-19.33,2.17c-9.5-7.33-7-22.33,2.33-28.67
      c9.33-6.33,25-5.83,34.5,9s6.83,46.22,1.5,54c-3.67,5.35-10.04,13.08-16.29,17.21s-17.12,5.62-24.62,2.75s-11.5-12.62-10.5-19.5
      s8.83-12.28,15.44-9.62c5.44,2.19,5.56,8.38,4.56,11.25s-4.62,3.88-7,1.5s-0.5-5.75,1.62-5.5s2.38,2.62,2.88,1.25
      s-0.81-3.16-2.31-3.56c-2.31-0.62-6.44,0.31-7.44,5.31s6.21,11.99,13.52,8.22c5.81-3,6.96-11.23,4.05-17.09
      c-3.88-7.81-14.56-9.62-20.81-5s-13.43,17.25-4.65,29.62s26.78,8.75,29.4,7.38s8.31-3.56,12.12-7.75S300,136,300,136
      c-5.92,11-17.22,27.65-26.33,39.33c-7.03,9.01-19.66,27.36-30.98,43.23c-2.69,3.77-9.27,10.43-20.1,11.52
      c-10.83,1.08-20.75-4.42-24-13.08s1.42-18.75,9.67-19.58c8.25-0.83,11.58,5.7,10.5,9.83c-1,3.81-5.33,7-11.5,1.75
      c0,0-1.08-0.73-0.67,1.42c0.48,2.52,2.56,7.52,10.48,7.02s9.56-5.56,10.06-11.19s-0.66-17.32-17.12-18.62
      c-16.56-1.31-21.85,16.81-20.75,24.38c1.44,9.94,7.74,27.6,42.12,20.85c2.11-0.41-4.74,8.97-6.7,11.82
      c-3.42,4.96-20.17,20.33-25.42,24.58S185,283.5,176.5,282s-12.12-5.75-12-13.25s6.88-10.75,11.25-9.25s5.75,3.75,6.25,6.75
      s-1.12,6.75-2.88,7.62s-6.75,0.88-7.62-2.88s1.62-5.25,4-5.62s1.5-1.12,0.38-1.25s-5.12,0.12-6.25,3.38s-0.12,6.88,1.5,8.25
      s5.88,3.62,11,0s5-9.5,3.38-14.5s-10.25-7.5-16.38-5.25s-9.75,7.38-9.5,16s6,12.75,8.38,14.25s11.62,3.73,20.5-1.12
      c2.67-1.46-10,8.88-13.33,11.71c-3.33,2.83-25.17,23.67-29.67,34.67s-8,23.83-4,35.83s13.5,19,28.17,20.5
      c14.67,1.5,22.83-7.67,26.5-13.5c3.67-5.83,5-20.5-6.83-27.83c-11.83-7.33-20.83,1.33-23,5.83c-2.17,4.5-2.5,12.17,2.67,15.33
      c5.17,3.17,10,1.67,12.33-1.67c2.33-3.33,0.67-5.33,0-4.33c-0.67,1-3.17,4.5-7.67,1.5s-3.33-8.83,1.33-11.5
      c4.67-2.67,10.33-1.83,13.67,5.5c3.33,7.33,0,15.5-6,19.33s-21.67,5.33-29.83-6.33c-8.17-11.67-5.83-30.17,2.17-42
      c8-11.83,36-40,40.83-44.83c4.83-4.83,21.52-25.54,21.52-25.54c-8.34,16.45-17.67,40.78-13.52,61.04
      c5.5,26.83,19.33,41.5,34.17,50.5c6.82,4.14,23.05,13.46,39.89,23.3c0,0,0.74,22.11-0.01,34.36s-3.88,28.38-11.62,38.88
      s-17.5,17.62-24,21.75s-21.88,9.25-36.62,8.25s-31.12-12.38-38.5-21S152,449,157.25,431.25s24.75-27.62,38.38-27.75
      s24.22,8.62,28.3,18.12s2.33,21.38-6.3,29s-18,4.75-23.25,2.5s-10.12-9.12-7.12-19.25s19.94-10.44,21.5-0.12
      c1.42,9.39-6.75,9.88-9.62,9s-5.12-6.25-1.5-9s5.62,0.62,6.38,1.25s2.25-0.12,1.38-1.75s-2.12-4-7.62-3.12s-8.5,8.62-4.88,15
      s12.5,4.5,15.25,2.88s9.5-4.62,6.5-20.38s-31.88-16.75-36.62,3.62s8.75,30.88,14.88,32.88c3.08,1.01,21,6.38,32.38-8
      s11-30.5,4.5-43.62s-27-21.75-43.38-16.62s-28.88,13.62-35.5,30.62s-0.88,41.62,12.38,54.12s26.62,18.88,40.88,19.5
      s28.25-2.62,39.88-9s19.62-16.62,22-20s6.38-9.25,4.88-5.25s-13.91,29.6-29.48,45.78c-16,16.62-26.77,27.22-53.77,32.85
      s-46.88,2.88-65.75-5s-28.25-24-29-34.62s0.75-25.5,14.62-32.25s22.75-1.12,25.62,3.62S136,488,132.25,490.5s-6,1.25-7.88-0.75
      s-3-1.38-2.75-0.5s0.75,7.25,9,7.88s13.62-8.38,13.75-15.88s-6.12-22.75-21.25-23.75s-27.5,3.75-39.25,24.75S87.62,528.12,96,536.5
      s24.38,22.25,61.25,22.62s65.9-19.65,77.75-31.5c13.5-13.5,24.59-31.55,30.38-42.62c8.75-16.75,11.11-26.49,13.38-42.62
      c2.25-16,3.45-47.21,3.45-47.21c19.02,11.14,36.39,21.57,43.3,26.84c1.27,0.97,2.67,1.83,4.03,2.88
      c7.97,6.12,17.8,17.96,21.13,28.79c3.33,10.83,1.67,24.5-9.67,34.83s-23.67,12.5-38.17,5.33c-14.5-7.17-12.5-26-7.33-33.33
      s13.5-11.5,25-7.33c11.5,4.17,9.33,18.33,7.67,21.5c-1.67,3.17-9,8-16.17,6.17c-7.17-1.83-8.33-8.5-6.83-13.5s-0.33-2.67-1.17-0.5
      c-0.83,2.17-1.67,7.5-0.5,9.83c1.17,2.33,3.67,8.33,13.83,7.83c10.17-0.5,14.83-7.67,15.67-14s0-15-9.67-20.5
      c-9.67-5.5-25.67-4.17-32.33,8.67c-6.67,12.83-4,28.67-0.83,33c3.17,4.33,11.67,10.5,18.83,12.5s15.83-1,13.83,2.17
      c-2,3.17-35.33,23.67-19.33,54.33c0,0,1.67,3-0.17-5.33c-1.83-8.33-3.33-17.17,5.83-27.67c9.17-10.5,24.5-20.83,32-25.83
      s17.67-17.17,18.67-27.33s-1-26-4-31.17c-3-5.17,7.33,7,10.67,12s13.17,19.33,22.67,37.67s9.84,18.35,9.33,26.5
      c-0.62,10-4.08,24.19-19.5,34.2c-11.62,7.55-23.39,6.3-34.39-3.03c-11-9.33-8.15-26.29-1.48-31.29c6.67-5,14.04-4.4,17.87,1.74
      c3.12,5,0.2,9.43-3.04,10.88c-4.21,1.88-6.54-2.75-5.21-5.25c2.12-4,5.49-0.08,5.21-1.25c-0.29-1.17-1.29-3.5-4.96-4
      s-11.17,3.33-9.33,10.67c1.83,7.33,5.5,10.17,12.5,11c7,0.83,16.5-4.17,17-15.33c0.5-11.17-7.09-19.33-15.21-21.5
      c-8.12-2.17-22.46-1.83-30.29,15.5c-7.83,17.33,5,32.33,11.67,37.33c6.67,5,18.62,10.71,31.5,4.83
      c15.58-7.11,30.29-20.38,30.54-49.88c0.03-3.85,1.17,0.83,1.17,0.83c42.33,74.67,85.58,47.08,94.96,40.42
      c9.85-7,24.5-30.04,21.5-51.38c-3-21.33-23.68-35.83-39.67-37.67C459,464,443.71,479.51,441.67,489c-2.18,10.11-5,25.67,7.33,35.67
      s31.33,5.33,38-7.67"/>
    <path class="path2" fill="none" stroke="#38FF00" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
      M267.17,84.83C266,79.17,268.67,69.5,280,70.5s14.33,12,11.83,19.5s-8,13-19.5,13s-18-8-18.67-17.5C253,76,254,63.33,267.5,58.83
      c7.46-2.49,14.57-2.28,21.09,0.07l0,0c-3.5-2.76-6.45-5.07-8.34-6.53c-8.58-6.62-7.5-16.62-6.62-22s5.38-16,18-16.88
      s19,7,19.12,15.62s-4.62,14.12-9.25,15.75s-12.67,0.56-15.5-3.75c-3-4.56-3.12-12.12,2.25-15.88s10.62-1.38,13,2.38
      s1.55,8.49-1.77,9.75c-3.79,1.44-5.42-0.56-6.17-1.94s0.31-3.19,2.31-3.44c2,0,2.38,1.5,2.25,2s0.05,1.56,0.88,0.62
      s1.38-4.5-2.5-5.75s-8.12,2.38-5.62,7.38s8.5,4.31,11.62,2.38c2.69-1.67,7.06-11.62-2.25-17.38c-9.74-6.01-19,1-21.62,5.88
      s-2.75,10.62-0.75,17.12s11.25,11.62,16.5,15.25S323,77.12,334.75,90s14.63,24.76,6.89,35.38c-7.01,9.62-25.01,7.75-29.01-2.5
      s0.75-21.88,11.88-21.38s11.88,10.38,10.38,14.38c-1.59,4.23-4.88,7.38-11.12,5.62s-5.5-11,0.12-11.38s4.75,4,4.25,4.88
      s-3,1.75-1.75-0.12s-3.25-4.12-3.62,0s4.25,6,7.25,3.38s2.88-9.25-1.25-12c-5.54-3.69-13.5,0-13.62,9.25s6.88,11.38,12.5,11.38
      s13.5-2.62,14-13.62s-12.21-23.12-16.88-27.12c-6.12-5.25-9.12-7-18.62-13.34l0,0c6.04,12.33,4.23,36.26,3.5,40.96
      c-0.37,2.39-3.54,13.58-3.12,21.42c0.4,7.58,0.83,21.08,3.36,28.42c2.53,7.33,10.22,16.5,17.72,17.33c7.5,0.83,14-1.25,18.5-5.08
      c4.5-3.83,6.58-10.58,6.25-16.25c-0.33-5.67-6.58-11.58-9.67-12.92c-3.08-1.33-10.17-1-13.92,2.17C325,152,324.5,158,326,161.33
      c1.5,3.33,7.14,5.44,10.75,3.83c3.75-1.67,4.83-4.92,4-7.58c-0.83-2.67-3.08-4.25-6-3.92c-2.92,0.33-3.42,2.5-3.92,3.42
      c-0.5,0.92-1.33-2.42-0.08-4.25c1.25-1.83,5.42-3.92,10.33-1.75c4.92,2.17,6.17,9.08,3.58,14.17c-2.58,5.08-9.5,8.17-16.42,5.5
      s-10.17-12-8.58-17.67c1.58-5.67,7.17-13.33,15.25-13.58c8.08-0.25,14.3,2.47,18.77,7.77c4.82,5.73,6.2,14.76,3.91,21.76
      c-2.48,7.58-9.34,16.59-22.34,17.34s-21.88-8-26.88-15.38s-4.5-35.38-4.5-37.5s-1.38,3.25-3.88,8.83
      c-1.96,4.37-8.57,15.97-17.77,28.07c-2.23,2.93-3.98,19.43-4.39,27.26c-0.42,7.83,2.67,26.83,7.83,33.75
      c5.17,6.92,18.21,24.08,32.83,29.58s25.5,4.25,37.88,0.62S378,244.38,380.5,234.5s-2.12-22.5-7.12-29.88s-14-11.38-26.75-9.75
      s-16.5,12.88-17.62,17.75s1.75,15.38,7.25,18.62s15.5,3.5,19.75-4.38s0.12-16.62-7.62-16.12s-9.5,6.62-8.5,9.88s3,6.38,1.62,5.75
      s-5.38-2.38-6.25-9s5.22-14.21,13.75-13.88c12.75,0.5,17.66,9.76,18.62,16.5c1,7-2.25,19.88-15.62,22.62
      c-14.05,2.89-24-0.25-31.25-14.88s1.76-29.06,6.25-34c2.5-2.75,16.38-12.88,32-9.75c11.62,2.32,23.38,9.12,29.38,22.5
      s4.75,34.38-5.88,47.12s-24,20.88-48.25,19.5s-45.43-27.53-49.88-34.38c-6.25-9.62-10.01-23.13-9.64-36.63s3.68-27.07,2.51-25.37
      C265.77,193.41,253.91,210.99,249,218c-9.33,13.33-40.75,57.75-37.25,86.75s11.12,48.32,38,54.25c10.58,2.33,27.25,2.67,40.75-5.67
      c13.5-8.33,20.67-19,21.67-30s-1.17-24.33-7-30.83c-5.83-6.5-9.67-12-25.17-12.83c-15.5-0.83-28.5,9.17-29.17,20.33
      c-0.67,11.17,2.17,24,14,26.5c11.83,2.5,21-3,22.33-12c1.33-9-4.5-22.33-22.67-15.67c0,0-2.5-0.33,2.33-3.33
      c4.83-3,13.17-5.67,19.83-0.67c6.67,5,12.17,14,7.5,27.83c-4.67,13.83-25.83,16-33,14c-7.17-2-21.67-10.83-22.5-26.83
      c-0.83-16,5-32.67,21-38.83s43.67-6.17,54.67,13.17c8.26,14.51,11.91,29.87,8.92,44.46c0,0,13.62-21.25,23.5-27.38
      s25.62-15.88,51-10c27.48,6.36,37.88,22.12,42.25,39.5s-1.62,35.75-11,45s-24.88,13.5-38,10s-22.12-10.5-23.5-27.5
      s8.62-25.43,21.88-26.53c13.25-1.1,20.5,8.03,20.12,16.9c-0.36,8.46-7.38,12.12-10.12,12.38s-6.25-1-4.75-1.62s6.88-0.75,8.5-6.12
      s-0.75-12.38-7.25-13.88s-17.88,0.12-18.62,12.88s6.5,19.88,16.25,23.62s24.12-1.38,30.12-8.62s11.75-20.75,7.75-37.5
      s-17.88-28.12-30.75-31.5s-29.25-5-46.62,2.5s-31.49,30.97-31.49,30.97c-1.03,3.77-2.52,7.49-4.51,11.11
      c-10.17,18.5-34.17,27.17-43.33,28.17c-9.17,1-20.33-0.33-17.5,1.17c2.83,1.5,23.44,11.74,35.17,18
      c41.03,21.9,67.96,49.46,85.94,72.37c1.8,2.3-0.03-3.67-0.28-7.04s-2.75-17.62,2.75-33.5s16.62-24.12,20.88-27.38s23.38-11.5,39-8.5
      s31.25,14.62,34.88,28.75s-0.38,29.88-6.62,37.5s-15.88,14.25-30.5,13.88s-24.12-8.75-26.75-16.38s-3.75-20,3.12-28.5
      s16.25-12.12,26.12-8.62s15.38,13.75,13.88,20.88s-3.88,13.12-12.94,14.62s-14.06-3.62-15.56-8.25s1.38-9.5,2.62-10.62
      s-1.75,4.62,2,9.12s10.88,4.62,13.5,0.12s3-12.88-6-17.62s-24.38,5.62-19.75,19.75s15.75,17,26,16s25.62-11.25,24.62-28.88
      s-8.5-24.5-16.88-29.75s-26.96-8.88-44.29-1.62c-17.33,7.25-25.25,26.25-27.83,35.25s0.17,31.33,1.46,35.3
      c0.71,2.2,31.96,51.45,43.46,63.95s18,22,35,22.67c17,0.67,30.83-7.5,40-24.17c9.17-16.67,1.83-35.67-5.83-42.33
      c-7.67-6.67-21.67-9.17-30.67-4.83c-6.05,2.91-13.21,11.98-11.83,23.33c1.33,11,7.83,15,16.83,16.17c7.34,0.95,15.5-6.33,17.33-8.67
      "/>
    </svg>
  </div>
</div>


              
            
!

CSS

              
                $bg: darken(#2f2f31, 7);
$pop: lime;
$pop_md: rgba(lime, 0.8);

body {
  padding: 1rem 4rem;
  background-color: $bg;
}

.container {
  position: relative;
  width: 500px;
  height: 500px;
  margin: 0 auto;
  
  h1 {
    font-family: 'Cookie', cursive;
    font-size: 60px;
    letter-spacing: 3px;
    position: absolute;
    top: 460px;
    width: 100%;
    text-align: center;
    color: $pop;
    -webkit-filter: drop-shadow( 0 4px 5px black );
            filter: drop-shadow( 0 4px 5px black );
    
    @for $c from 1 through 14 {
      span:nth-child(#{$c}) {
        animation: flicker random(50000)+3000+ms linear infinite;
        color: adjust-hue(yellow, $c * 10%);
        //animation: flicker 1000 * $c + ms linear infinite;
      }
    }
  }
}

@keyframes flicker {
  0%,12%,18.999%,23%,31.999%,37%,44.999%,46%,49.999%,51%,58.999%,61%,68.999%,71%,85.999%,96%,100% {
    opacity:0.99; text-shadow: 0 0 20px $pop,0 0 10px $bg,0 0 2px $pop;
  }
  19%,22.99%,32%,36.999%,45%,45.999%,50%,50.99%,59%,60.999%,69%,70.999%,86%,95.999% { 
    opacity:0.4; text-shadow: none; 
  }
}

@mixin anim($arg) {
  stroke-dasharray: $arg;
  stroke-dashoffset: $arg;
  animation: dash random(8000)+4000+ms linear normal infinite;
  animation-fill-mode: forwards;

  @keyframes dash {
    6%   {stroke-dashoffset: $arg;}
    40%  {stroke-dashoffset: 0;}
    60%  {stroke-dashoffset: 0;}
    94% {stroke-dashoffset: -$arg;}
  }
}

@mixin anim2($arg) {
  stroke-dasharray: $arg;
  stroke-dashoffset: $arg;
  animation: dash2 random(10000)+5000+ms linear normal infinite;
  animation-fill-mode: forwards;

  @keyframes dash2 {
    0%   {stroke-dashoffset: -$arg;}
    40% {stroke-dashoffset: 0;}
    60% {stroke-dashoffset: 0;}
    100% {stroke-dashoffset: $arg;}
  }
}


.wrapper1 {
  .path1 { @include anim(5176.24072265625) }
  .path2 { @include anim(4918.146484375) }
}

.wrapper2 {
  .path1 { @include anim2(5176.24072265625) }
  .path2 { @include anim2(4918.146484375) }
}

.wrapper3 {
  .path1 { @include anim2(5176.24072265625) }
  .path2 { @include anim2(4918.146484375) }
}

.wrapper1, .wrapper2, .wrapper3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
}
.wrapper1 {
  svg {
    -webkit-filter: drop-shadow( 0 0 10px $pop );
            filter: drop-shadow( 0 0 10px $pop );
  }
  path {
    stroke: $pop;
    stroke-width: 1;
  }
}

.wrapper2 {
  top: 1px;
  svg {
    -webkit-filter: drop-shadow( 0 0 10px $pop );
            filter: drop-shadow( 0 0 10px $pop );
  }
  path {
   stroke: rgba($pop, 0.2);
   stroke-width: 2;
  }
}

.wrapper3 {
  path {
   stroke: rgba(#000, 0.5);
   stroke-width: 10;
  }
}

              
            
!

JS

              
                // var path = document.querySelector(".path2");
// var l = path.getTotalLength();
// console.log( l );

$('.wrapper1 svg').clone().appendTo('.wrapper2');
$('.wrapper2 svg').clone().appendTo('.wrapper3');

var jingle = $('body').find('h1').html();

function cracklamps(str){
  var arr = str.split('');
  for(var i=0; i<arr.length; i++) {
    arr[i] = "<span>" + arr[i] + "</span>"; 
  }
  return arr.join('');
}

var old = $('h1').html();
$('h1').html( cracklamps( old ) );


              
            
!
999px

Console