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

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

              
                <section>
  
  <svg width="1440" height="451" viewBox="0 0 1440 451" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0)">
<g opacity="0.7">
<circle cx="1055.57" cy="51.4568" r="4" transform="rotate(180 1055.57 51.4568)" fill="#0FBAA8"/>
<circle cx="279.944" cy="190.672" r="4" transform="rotate(180 279.944 190.672)" fill="#0FBAA8"/>
<circle cx="433.365" cy="5.99854" r="4" transform="rotate(180 433.365 5.99854)" fill="#0FBAA8"/>
<circle cx="1064.09" cy="444.953" r="4" transform="rotate(180 1064.09 444.953)" fill="#0FBAA8"/>
<circle cx="890.783" cy="206.299" r="4" transform="rotate(180 890.783 206.299)" fill="#0FBAA8"/>
<circle cx="416.308" cy="59.9812" r="4" transform="rotate(180 416.308 59.9812)" fill="#0FBAA8"/>
<circle cx="1326.3" cy="150.662" r="4" transform="rotate(-90.0891 1326.3 150.662)" fill="#0FBAA8"/>
<circle cx="1103.87" cy="5.99854" r="4" transform="rotate(180 1103.87 5.99854)" fill="#0FBAA8"/>
<circle cx="100.949" cy="190.672" r="4" transform="rotate(180 100.949 190.672)" fill="#0FBAA8"/>
<circle cx="768.613" cy="-2.52515" r="4" transform="rotate(180 768.613 -2.52515)" fill="#0FBAA8"/>
<circle cx="663.49" cy="206.299" r="4" transform="rotate(180 663.49 206.299)" fill="#0FBAA8"/>
<circle cx="1015.35" cy="249.163" r="4" transform="rotate(-90.0891 1015.35 249.163)" fill="#0FBAA8"/>
<circle cx="613.396" cy="453.471" r="4" transform="rotate(-90.0891 613.396 453.471)" fill="#0FBAA8"/>
<circle cx="46.9658" cy="346.935" r="4" transform="rotate(180 46.9658 346.935)" fill="#0FBAA8"/>
<circle cx="716.507" cy="332.834" r="4" transform="rotate(180 716.507 332.834)" fill="#0FBAA8"/>
<circle cx="824.021" cy="317.101" r="4" transform="rotate(180 824.021 317.101)" fill="#0FBAA8"/>
<circle cx="481.658" cy="392.393" r="4" transform="rotate(180 481.658 392.393)" fill="#0FBAA8"/>
<circle cx="620.877" cy="68.5037" r="4" transform="rotate(180 620.877 68.5037)" fill="#0FBAA8"/>
<circle cx="162.034" cy="392.393" r="4" transform="rotate(180 162.034 392.393)" fill="#0FBAA8"/>
<circle cx="1268.65" cy="254.598" r="4" transform="rotate(180 1268.65 254.598)" fill="#0FBAA8"/>
</g>
<g opacity="0.3">
<circle cx="364.139" cy="394.385" r="3.5" fill="#0FBAA8"/>
<circle cx="1134.75" cy="256.071" r="3.5" fill="#0FBAA8"/>
<circle cx="982.32" cy="439.55" r="3.5" fill="#0FBAA8"/>
<circle cx="893.406" cy="47.1887" r="3.5" fill="#0FBAA8"/>
<circle cx="53.6421" cy="55.6577" r="3.5" fill="#0FBAA8"/>
<circle cx="1393.77" cy="454.353" r="3.5" transform="rotate(142.054 1393.77 454.353)" fill="#0FBAA8"/>
<circle cx="95.9875" cy="234.901" r="3.5" fill="#0FBAA8"/>
<circle cx="355.676" cy="3.43823" r="3.5" fill="#0FBAA8"/>
<circle cx="282.287" cy="368.981" r="3.5" fill="#0FBAA8"/>
<circle cx="527.864" cy="240.547" r="3.5" fill="#0FBAA8"/>
<circle cx="999.266" cy="385.918" r="3.5" fill="#0FBAA8"/>
<circle cx="96.1142" cy="295.822" r="3.5" transform="rotate(89.9109 96.1142 295.822)" fill="#0FBAA8"/>
<circle cx="495.465" cy="92.8404" r="3.5" transform="rotate(89.9109 495.465 92.8404)" fill="#0FBAA8"/>
<circle cx="393.785" cy="47.1887" r="3.5" fill="#0FBAA8"/>
<circle cx="316.159" cy="439.55" r="3.5" fill="#0FBAA8"/>
<circle cx="1312.58" cy="256.071" r="3.5" fill="#0FBAA8"/>
<circle cx="649.242" cy="448.017" r="3.5" fill="#0FBAA8"/>
<circle cx="753.684" cy="240.547" r="3.5" fill="#0FBAA8"/>
<circle cx="901.875" cy="76.8284" r="3.5" fill="#0FBAA8"/>
<circle cx="405.048" cy="197.958" r="3.5" transform="rotate(89.9109 405.048 197.958)" fill="#0FBAA8"/>
<circle cx="1368.87" cy="436.187" r="3.5" transform="rotate(142.054 1368.87 436.187)" fill="#0FBAA8"/>
<circle cx="372.613" cy="114.936" r="3.5" fill="#0FBAA8"/>
<circle cx="1366.22" cy="100.822" r="3.5" fill="#0FBAA8"/>
<circle cx="718.4" cy="114.936" r="3.5" fill="#0FBAA8"/>
<circle cx="594.193" cy="130.46" r="3.5" fill="#0FBAA8"/>
<circle cx="934.335" cy="55.6577" r="3.5" fill="#0FBAA8"/>
<circle cx="1412.79" cy="202.439" r="3.5" fill="#0FBAA8"/>
<circle cx="796.021" cy="377.449" r="3.5" fill="#0FBAA8"/>
<circle cx="1395.85" cy="247.604" r="3.5" fill="#0FBAA8"/>
<circle cx="1251.89" cy="55.6577" r="3.5" fill="#0FBAA8"/>
<circle cx="152.441" cy="192.56" r="3.5" fill="#0FBAA8"/>
</g>
</g>
<defs>
<clipPath id="clip0">
<rect width="1440" height="451" fill="white"/>
</clipPath>
</defs>
</svg>

</section>
              
            
!

CSS

              
                body{
  font-family: 'Open Sans', sans-serif;
  color: #333333;
  max-width:1232px;
  padding:0 24px;
  margin:0 auto;
  overflow:hidden;
  height:100%;
  background:#eee;
}

section {
  position:relative;
  height:500px
}

section:after{
  content:" ";
  top:0;
  left:50%;
  transform: translate(-50%, 0);
  height:100%;
  width:100vw;
  position: absolute;
  z-index:-20;
  background: #fff;
}

.content{
  padding:88px 0;
  width:788px;
  text-align:center;
  margin:0 auto;
}

.header{
  font-size:36px;
  line-height: 120%;
  font-weight:700;
  margin-bottom:32px;
  @media (min-width: 800px) { 
   font-size:36px;
  }
}

p{
  margin:0;
  font-size:20px;
  line-height:150%;
  margin-bottom:32px;
}

svg{
  // z-index:-10;
  position:absolute;
  // height:95%;
  // width:auto;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  // overflow:visible;
  // @media (min-width: 800px) { 
  //   height:705px;
  //   width:auto;
  //   left:100%;
  //   top:15px;
  //   transform: translate(-46%, 0);
  //   opacity:1;
  // }
}
              
            
!

JS

              
                console.clear();
const targets = gsap.utils.toArray("circle");
let xWiggle = 120;
let yWiggle = 60;
let wigs = 18;
targets.forEach((target, i) => {
  let duration = gsap.utils.random(30, 50);
  gsap.to(target, {
    duration: duration,
    x: "+=" + xWiggle,
    repeat: -1,
    ease: CustomWiggle.create("", {
      type: "random",
      wiggles: wigs
    })
  });
  gsap.to(target, {
    duration: duration,
    y: "+=" + yWiggle,
    repeat: -1,
    ease: CustomWiggle.create("", {
      type: "random",
      wiggles: wigs
    })
  });
});

              
            
!
999px

Console