Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <illustration>
  <rect></rect>
  <svg width="891" height="264" viewBox="0 0 891 264" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M388 96L388 68C388 65.7909 386.209 64 384 64L310 64" stroke="black" stroke-opacity="0.1"/>
<path d="M349 130L5.00002 130C2.79088 130 1.00001 131.791 1.00001 134L1.00001 264" stroke="black" stroke-opacity="0.1"/>
<path d="M547 130L822 130C824.209 130 826 131.791 826 134L826 264" stroke="black" stroke-opacity="0.1"/>
<path d="M349 150L73 150C70.7909 150 69 151.791 69 154L69 174" stroke="black" stroke-opacity="0.1"/>
<path d="M547 150L633 150C635.209 150 637 151.791 637 154L637 236C637 238.209 635.209 240 633 240L488 240C485.791 240 484 241.791 484 244L484 264" stroke="black" stroke-opacity="0.1"/>
<path d="M388 184L388 194C388 196.209 386.209 198 384 198L77 198C74.7909 198 73 199.791 73 202L73 264" stroke="black" stroke-opacity="0.1"/>
<path d="M412 96L412 0" stroke="url(#paint0_linear_25_1999)" stroke-opacity="0.1"/>
<path d="M412 263.5L412 184" stroke="black" stroke-opacity="0.1"/>
<path d="M436 96L436 0" stroke="url(#paint1_linear_25_1999)" stroke-opacity="0.1"/>
<path d="M436 214L436 184" stroke="black" stroke-opacity="0.1"/>
<path d="M460 96L460 64" stroke="black" stroke-opacity="0.1"/>
<path d="M460 239L460 184" stroke="black" stroke-opacity="0.1"/>
<path d="M484 96L484 24C484 21.7909 485.791 20 488 20L554 20" stroke="url(#paint2_linear_25_1999)" stroke-opacity="0.1"/>
<path d="M484 184L484 210C484 212.209 485.791 214 488 214L560 214" stroke="black" stroke-opacity="0.1"/>
<path d="M508 96L508 88C508 85.7909 509.791 84 512 84L886 84C888.209 84 890 85.7909 890 88L890 264" stroke="black" stroke-opacity="0.1"/>
<path d="M508 184L508 193C508 195.209 509.791 197 512 197L560 197" stroke="black" stroke-opacity="0.1"/>
<circle cx="460" cy="64" r="4" fill="white"/>
<circle cx="460" cy="64" r="3.5" stroke="black" stroke-opacity="0.1"/>
<circle cx="308" cy="64" r="4" fill="white"/>
<circle cx="308" cy="64" r="3.5" stroke="black" stroke-opacity="0.1"/>
<circle cx="69" cy="173" r="4" fill="white"/>
<circle cx="69" cy="173" r="3.5" stroke="black" stroke-opacity="0.1"/>
<circle cx="436" cy="214" r="4" fill="white"/>
<circle cx="436" cy="214" r="3.5" stroke="black" stroke-opacity="0.1"/>
<circle cx="460" cy="240" r="4" fill="white"/>
<circle cx="460" cy="240" r="3.5" stroke="black" stroke-opacity="0.1"/>
<circle cx="560" cy="214" r="4" fill="white"/>
<circle cx="560" cy="214" r="3.5" stroke="black" stroke-opacity="0.1"/>
<circle cx="560" cy="197" r="4" fill="white"/>
<circle cx="560" cy="197" r="3.5" stroke="black" stroke-opacity="0.1"/>
<rect width="2" height="98" rx="1" transform="matrix(1 0 0 -1 889 200)" fill="url(#paint3_linear_25_1999)"/>
<rect x="811" y="129" width="2" height="38" rx="1" transform="rotate(90 811 129)" fill="url(#paint4_linear_25_1999)"/>
<rect x="631" y="149" width="2" height="60" rx="1" transform="rotate(90 631 149)" fill="url(#paint5_linear_25_1999)"/>
<rect width="2" height="40" rx="1" transform="matrix(1 0 0 -1 411 254)" fill="url(#paint6_linear_25_1999)"/>
<rect width="2" height="113" rx="1" transform="matrix(0 1 1 0 100 129)" fill="url(#paint7_linear_25_1999)"/>
<rect width="2" height="29" rx="1" transform="matrix(1 0 0 -1 72 226)" fill="url(#paint8_linear_25_1999)"/>
<defs>
<linearGradient id="paint0_linear_25_1999" x1="412.5" y1="-3.27835e-08" x2="412.5" y2="96" gradientUnits="userSpaceOnUse">
<stop stop-opacity="0"/>
<stop offset="1"/>
</linearGradient>
<linearGradient id="paint1_linear_25_1999" x1="436.5" y1="-3.27835e-08" x2="436.5" y2="96" gradientUnits="userSpaceOnUse">
<stop stop-opacity="0"/>
<stop offset="1"/>
</linearGradient>
<linearGradient id="paint2_linear_25_1999" x1="554" y1="20" x2="484" y2="96" gradientUnits="userSpaceOnUse">
<stop stop-opacity="0"/>
<stop offset="1"/>
</linearGradient>
<linearGradient id="paint3_linear_25_1999" x1="1.80632" y1="98.3905" x2="1.80083" y2="-4.11524" gradientUnits="userSpaceOnUse">
<stop stop-color="#FF7432"/>
<stop offset="0.21875" stop-color="#F7CC4B"/>
<stop offset="1" stop-color="#F7CC4B" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint4_linear_25_1999" x1="812.806" y1="167.151" x2="812.805" y2="127.404" gradientUnits="userSpaceOnUse">
<stop stop-color="#FF7432"/>
<stop offset="0.21875" stop-color="#F7CC4B"/>
<stop offset="1" stop-color="#F7CC4B" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint5_linear_25_1999" x1="632.806" y1="209.239" x2="632.804" y2="146.48" gradientUnits="userSpaceOnUse">
<stop stop-color="#FF4A81"/>
<stop offset="0.21875" stop-color="#DF6CF7"/>
<stop offset="1" stop-color="#0196FF" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint6_linear_25_1999" x1="1.80632" y1="40.1594" x2="1.80541" y2="-1.67969" gradientUnits="userSpaceOnUse">
<stop stop-color="#FF4A81"/>
<stop offset="0.21875" stop-color="#DF6CF7"/>
<stop offset="1" stop-color="#0196FF" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint7_linear_25_1999" x1="1.80632" y1="113.45" x2="1.79902" y2="-4.74512" gradientUnits="userSpaceOnUse">
<stop stop-color="#2EB9DF"/>
<stop offset="0.21875" stop-color="#61DAFB"/>
<stop offset="1" stop-color="#61DAFB" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint8_linear_25_1999" x1="1.80632" y1="29.1156" x2="1.80584" y2="-1.21777" gradientUnits="userSpaceOnUse">
<stop stop-color="#2EB9DF"/>
<stop offset="0.21875" stop-color="#61DAFB"/>
<stop offset="1" stop-color="#61DAFB" stop-opacity="0"/>
</linearGradient>
</defs>
</svg>

</illustration>
              
            
!

CSS

              
                illustration {
  display: block;
  position: relative;
}

rect {
  height: 2px;
  width: 40px;
  background: linear-gradient(
    to right,
    #2eb9df -0.4%,
    #61dafb 22.48%,
    rgba(97, 218, 251, 0) 104.2%
  );
  top: 0px;
  position: absolute;
  z-index: 1;
  left: 0;
  offset-path: path(
    "M388 184L388 194C388 196.209 386.209 198 384 198L77 198C74.7909 198 73 199.791 73 202L73 264"
  );
  animation: move 3000ms infinite reverse ease-in-out;
}

@keyframes move {
  0% {
    offset-distance: 0%;
  }
  100% {
    offset-distance: 100%;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console