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

              
                <div class="player">
  <svg width="792" height="102" viewBox="0 0 792 102" fill="none" xmlns="http://www.w3.org/2000/svg" class="st stroke1">
  <path opacity="0.2" d="M791 100.879C755.281 56.372 704.841 9.17119 647.613 12.7602C584.784 16.7005 567.93 78.4681 503.654 80.4229C428.153 82.7199 412.376 -1.32399 338.709 1.04934C266.16 3.38907 242.872 86.1592 170.52 76.7484C134.544 72.0689 123.819 55.5045 86.8176 51.6895C67.2075 49.6674 38.8437 57.3494 1 100.879" stroke="url(#paint0_linear)"/>
  <defs>
  <linearGradient id="paint0_linear" x1="1" y1="1" x2="71.4604" y2="279.302" gradientUnits="userSpaceOnUse">
  <stop stop-color="#91CB3E"/>
  <stop offset="1" stop-color="#02C39A"/>
  </linearGradient>
  </defs>
  </svg>
  <svg width="790" height="103" viewBox="0 0 790 103" fill="none" xmlns="http://www.w3.org/2000/svg" class="st stroke3">
<path fill-rule="evenodd" clip-rule="evenodd" d="M790 103C754.281 57.101 703.841 8.42377 646.613 12.125C583.784 16.1886 566.93 79.8883 502.654 81.9043C427.153 84.2731 411.376 -2.3997 337.709 0.0510151C265.16 2.46078 241.872 87.82 169.52 78.1148C133.544 73.289 122.819 56.2096 85.8176 52.272C66.2075 50.1899 37.8437 58.109 0 103H790Z" fill="url(#paint0_linear)" fill-opacity="0.5"/>
<defs>
<linearGradient id="paint0_linear" x1="0" y1="0" x2="74.6476" y2="285.905" gradientUnits="userSpaceOnUse">
<stop stop-color="#91CB3E"/>
<stop offset="1" stop-color="#02C39A"/>
</linearGradient>
</defs>
  </svg>
  
  <svg width="792" height="86" viewBox="0 0 792 86" fill="none" xmlns="http://www.w3.org/2000/svg" class="st stroke5">
<path opacity="0.2" d="M1 85.0002C25.0919 53.979 61.4979 17.6912 104.423 19.393C152.151 21.2874 164.067 68.4113 217.051 73.0874C270.734 77.8235 281.76 31.4952 348.694 26.0709C405.735 21.4453 410.911 54.02 471.246 55.2798C549.292 56.9058 571.92 3.04723 638.561 0.799176C674.989 -0.432203 726.691 13.6845 791 84.2235" stroke="url(#paint0_linear)"/>
<defs>
<linearGradient id="paint0_linear" x1="1" y1="0.727539" x2="52.0476" y2="239.691" gradientUnits="userSpaceOnUse">
<stop stop-color="#91CB3E"/>
<stop offset="1" stop-color="#02C39A"/>
</linearGradient>
</defs>
</svg>
  
  <svg width="790" height="85" viewBox="0 0 790 85" fill="none" xmlns="http://www.w3.org/2000/svg" class="st stroke7">
<path fill-rule="evenodd" clip-rule="evenodd" d="M790 84.2235C725.691 13.6837 673.989 -0.429341 637.565 0.798839C570.92 3.04998 548.292 56.9068 470.246 55.2808C409.911 54.0242 404.735 21.4474 347.694 26.0728C280.76 31.497 269.734 77.8206 216.051 73.0847C163.067 68.4119 151.151 21.2896 103.423 19.3952C60.4979 17.6934 24.095 53.98 0 85.0002L790 84.2235Z" fill="url(#paint0_linear)" fill-opacity="0.5"/>
<defs>
<linearGradient id="paint0_linear" x1="0" y1="0.727539" x2="51.0476" y2="239.691" gradientUnits="userSpaceOnUse">
<stop stop-color="#91CB3E"/>
<stop offset="1" stop-color="#02C39A"/>
</linearGradient>
</defs>
</svg>
  
  <svg width="792" height="77" viewBox="0 0 792 77" fill="none" xmlns="http://www.w3.org/2000/svg" class="st stroke9">
<path opacity="0.2" d="M1 75.9996C22.0912 65.2575 56.4484 50.4587 100.455 44.2594C185.322 32.3031 223.629 63.9429 299.857 65.9132C393.052 68.3258 413.188 23.0417 501.887 6.30409C565.974 -5.78714 661.175 -2.09451 791 75.2279" stroke="url(#paint0_linear)"/>
<defs>
<linearGradient id="paint0_linear" x1="1" y1="1.09058" x2="41.7068" y2="215.467" gradientUnits="userSpaceOnUse">
<stop stop-color="#91CB3E"/>
<stop offset="1" stop-color="#02C39A"/>
</linearGradient>
</defs>
</svg>
  
  <svg width="790" height="75" viewBox="0 0 790 75" fill="none" xmlns="http://www.w3.org/2000/svg" class="st stroke11">
<path fill-rule="evenodd" clip-rule="evenodd" d="M790 74.2279C660.175 -3.09451 564.974 -6.78714 500.891 5.30409C412.188 22.0417 392.055 67.3258 298.86 64.9132C222.629 62.9429 184.322 31.3031 99.4547 43.2594C55.4484 49.4587 21.0912 64.2575 0 74.9996L790 74.2279Z" fill="url(#paint0_linear)" fill-opacity="0.5"/>
<defs>
<linearGradient id="paint0_linear" x1="0" y1="0.0905762" x2="40.7068" y2="214.467" gradientUnits="userSpaceOnUse">
<stop stop-color="#91CB3E"/>
<stop offset="1" stop-color="#02C39A"/>
</linearGradient>
</defs>
</svg>
</div>
              
            
!

CSS

              
                html{
  display: grid;
  height: 100vh;
}
body{
  margin: auto;
}
.player{
  position: relative;
  width: 70vw;
  height: 200px;
  border: solid thin;
  overflow: hidden;
  background: rgba(2, 195, 154, .05);
}
.st{
  position: absolute;
  bottom: -5px;
  width: 100%;
}

              
            
!

JS

              
                const $ = document.querySelector.bind(document);
const stroke1 = $('.stroke1');
const stroke3 = $('.stroke3');
const stroke5 = $('.stroke5');
const stroke7 = $('.stroke7');
const stroke9 = $('.stroke9');
const stroke11 = $('.stroke11');
//const duration = 2;
const tl = new TimelineMax({
  ease: Power1.easeInOut
});
tl
  .to(stroke3, 1.5, {
    x: 100,
    y: 25,
    yoyo: true,
    ease: Sine.easeInOut,
    repeat: -1,
  }, 'live')
  .to(stroke7, 2, {
    x: -100,
    y: 20,
    ease: Sine.easeInOut,
    yoyo: true,
    repeat: -1,
  }, 'live')
  .to(stroke11, 3, {
    x: -80,
    y: 15,
    ease: Sine.easeInOut,
    yoyo: true,
    repeat: -1,
    repeatDelay: .5,
  }, 'live')
              
            
!
999px

Console