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 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 viewBox="0 0 1688 795">
  <defs>
			<filter id="glow">
				<fegaussianblur class="blur" result="coloredBlur" stddeviation="8"></fegaussianblur>
				<femerge>
					<femergenode in="coloredBlur"></femergenode>
          <femergenode in="coloredBlur"></femergenode>
          <femergenode in="coloredBlur"></femergenode>
					<femergenode in="SourceGraphic"></femergenode>
				</femerge>
			</filter>
		</defs>
  <path id="path"
    d="M3 707C27 811 107 823 133 707C133 707 213 3 429 3C645 3 635 707 843 707C1051 707 1047 3 1239 3C1431 3 1555 707 1555 707C1577 813 1659 825 1685 707" style="fill-opacity: 0; stroke-width: 6; stroke: red; filter: url(#glow);"  />
</svg>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>

<!-- M3 87.0601C27 -16.9399 107 -28.9399 133 87.0601C133 87.0601 213 791.06 429 791.06C645 791.06 625 791.06 833 791.06C1041 791.06 1047 791.06 1239 791.06C1431 791.06 1555 87.0601 1555 87.0601C1577 -18.9399 1659 -30.9399 1685 87.0601

M3 707C27 811 107 823 133 707C133 707 213 3 429 3C645 3 635 707 843 707C1051 707 1047 3 1239 3C1431 3 1555 707 1555 707C1577 813 1659 825 1685 707 -->
              
            
!

CSS

              
                body {
  background-color: #333;
}
svg {
  position: absolute;
  width: 70vw;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  fill: none;
  overflow: visible;
}

@for $i from 1 through 200 {
  .dot:nth-child(#{$i}) {
    width: 1px + $i/7;
    height: 1px + $i/7;
  }
}

.dot {
  width: 25px;
  height: 25px;
  transform-box: fill-box;
  border-radius: 50%;
  background-color: #fff;
  box-shadow:
    0 0 5px 2px #FFF,
    0 0 10px 3px #FF7A00,
    0 0 10px 5px red;
}
              
            
!

JS

              
                gsap.registerPlugin(MotionPathPlugin);

gsap.set(".dot", {
	xPercent: -50,
	yPercent: -50,
	transformOrigin: "50% 50%"
});

const timeline = gsap.timeline({ 
    delay: 0  
	})
.set("#path", {
  drawSVG:"0%"
})
.to('.dot',{
  motionPath: {
        path: "#path",
        align: "#path",
        end: 0.75
    },
   stagger: {
     each:-0.001,
   },
    duration: 1,
    ease: "power4.inOut",
    repeat: 0,
    immediateRender: true,
}, 0)
.to('.dot',{
  motionPath: {
        path: "#path",
        align: "#path",
        start: 0.75,
        end: 1
    },
   stagger: {
     each:-0.001,
   },
    duration: 0.5,
    ease: "power4.Out",
    repeat: 0,
    immediateRender: true,
    opacity: 0
}, 0.75)
.to("#path", {
  drawSVG:"0 75%",
  duration: 1,
  ease: "power4.inOut"
}, 0)
.to("#path", {
  drawSVG:"100% 100%",
  duration: 0.5,
  ease: "power4.Out"
}, 0.75)





              
            
!
999px

Console