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

              
                <svg class="css-tricks-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 612 199.2">
  <defs>
    <filter id="Blur">
      <feGaussianBlur in="SourceGraphic" stdDeviation="12" result="blur"></feGaussianBlur>
      <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 19 -7" result="goo"></feColorMatrix>
    </filter>
  </defs>
  <path class="st0" d="M115.1 120.1c-1.2 0-2.3.5-3 1.1-4.1 3.5-8.1 5.4-14.1 5.4-10.8 0-18.6-8.9-18.6-20v-.2c0-11 7.9-19.9 18.6-19.9 5.4 0 9.6 1.9 13.4 5.1.6.5 1.6 1 3 1 2.7 0 4.9-2.1 4.9-4.8 0-1.8-.9-3.1-1.9-3.9-4.9-3.8-10.6-6.4-19.3-6.4-17.1 0-29 13.1-29 29.1v.2c0 16.2 12.2 29 28.6 29 9.1 0 15.1-2.9 20.4-7.6.9-.8 1.6-2 1.6-3.5 0-2.5-2.1-4.6-4.6-4.6zm36.8-17.9c-10.9-2.6-13.4-4.5-13.4-8.9v-.2c0-3.7 3.4-6.7 9.2-6.7 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-.6-2.6-1.6-3.8L340 113.3c7.6-2.3 12.8-7.8 12.8-16.8v-.2c0-4.9-1.7-9.1-4.7-12.1-3.6-3.6-9.1-5.7-16.2-5.7zM342.7 97c0 5.7-4.5 9.4-11.6 9.4h-14.5V87.5H331c7.3 0 11.7 3.3 11.7 9.3v.2zm27-18.9c-2.8 0-5 2.2-5 4.9v47.3c0 2.7 2.2 4.9 5 4.9 2.7 0 4.9-2.2 4.9-4.9V83c0-2.7-2.2-4.9-4.9-4.9zm62.7 42c-1.2 0-2.3.5-3 1.1-4.1 3.5-8.1 5.4-14.1 5.4-10.8 0-18.6-8.9-18.6-20v-.2c0-11 7.9-19.9 18.6-19.9 5.4 0 9.6 1.9 13.4 5.1.6.5 1.6 1 3 1 2.7 0 4.9-2.1 4.9-4.8 0-1.8-.9-3.1-1.9-3.9-4.9-3.8-10.6-6.4-19.3-6.4-17.1 0-29 13.1-29 29.1v.2c0 16.2 12.2 29 28.6 29 9.1 0 15.1-2.9 20.4-7.6.9-.8 1.6-2 1.6-3.5 0-2.5-2.1-4.6-4.6-4.6zm92.8-17.9c-10.9-2.6-13.4-4.5-13.4-8.9v-.2c0-3.7 3.4-6.7 9.2-6.7 4.4 0 8.6 1.4 13 4.3.8.5 1.6.7 2.6.7 2.6 0 4.7-2 4.7-4.6 0-1.9-1-3.3-2.2-3.9-5.1-3.4-10.8-5.2-17.9-5.2C510 77.7 502 84.4 502 94v.2c0 10.4 6.8 13.9 18.7 16.8 10.5 2.4 12.7 4.6 12.7 8.6v.2c0 4.2-3.9 7.1-10 7.1s-11.1-2.1-15.8-5.8c-.6-.5-1.5-.9-2.9-.9-2.6 0-4.7 2-4.7 4.6 0 1.6.8 3 1.9 3.8 6.3 4.7 13.5 7.1 21.2 7.1 11.8 0 20.1-6.3 20.1-16.8v-.2c0-9.4-6.1-13.6-18-16.5z" id="logo"/>
  <path id="dash" d="M232.3 115h15.1c2.6 0 4.7-2.2 4.7-4.7 0-2.7-2.2-4.8-4.7-4.8h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9.5 1.7 15.4c.5 3.6-1.9 6.6-5.3 6.6s-5.9-2.8-5.3-6.4l1.7-15.5z"/>
  <g id="dots">
    <circle id="morphdot" class="st2" cx="560" cy="50.8" r="6.5"/>
    <circle class="st2" cx="560" cy="50.8" r="6.5"/>
    <circle class="st2" cx="560" cy="50.8" r="6.5"/>
    <circle class="st2" cx="560" cy="50.8" r="6.5"/>
    <circle class="st2" cx="560" cy="50.8" r="6.5"/>
    <circle class="st2" cx="560" cy="50.8" r="6.5"/>
  </g>
  <!--<circle id="dashdot" class="st2" cx="247.7" cy="110.2" r="4.8"/>-->
  <path id="halfstar" class="st0 halfstar" d="M477 113.2l-17.2-6.6 17.2-6.7c2.1-.9 4-2.6 4-5.3 0-3.1-2.6-5.7-5.7-5.7-1.6 0-2.8.5-4.3 1.7l-14.9 9.5 1.7-15.5c.5-3.6-1.9-6.4-5.3-6.4s-5.9 2.9-5.3 6.6v44c-.5 3.6 1.9 6.4 5.3 6.4 3.5 0 5.9-2.9 5.3-6.6l-1.7-15.4 14.9 9.5c1.6 1 2.8 1.7 4.1 1.7 3.1 0 5.9-2.6 5.9-5.7 0-2.7-1.9-4.6-4-5.5z"/>
</svg>
              
            
!

CSS

              
                .css-tricks-logo {
  width: 600px;
}

.st0{fill:#222222;} 
.st2{fill:#E08728;} 
.st3{fill:none;}

#k2 {
  stroke: black;
}

.star, .halfstar, #morphdot, #k2 {
  visibility: hidden;
}
              
            
!

JS

              
                var hstar = $("#halfstar"),
    star = $("#star"),
    k = $("#k"),
    k2 = $("#k2"),
    dS = $("#dots circle"),
    bezier = [{ x: 0, y: 0 }, { x: 0, y: 20 }, { x: 20, y: 20 }, { x: 20, y: 0 }, { x: 0, y: 0 }];

TweenMax.set(k2, {
  visibility: "visible"
});

function sceneOne() {
  var tl = new TimelineMax();

  tl.add("begin");
  tl.to(k, 0.2, {morphSVG:{shape:hstar}, ease:Linear.easeNone});
  tl.to(k, 0.2, {morphSVG:{shape:star}, ease:Linear.easeNone});
  tl.to(k, 0.5, {rotation:-360});
  tl.to(k, 0.2, {morphSVG:{shape:"#morphdot"}, ease:Linear.easeNone});
  tl.from(dS, 0.2, {opacity:0, ease:Linear.easeNone});
  tl.to(k, 0.2, {opacity:0, ease:Linear.easeNone});
  tl.staggerTo(dS, 0.1, { bezier: {
    type: 'thru',
    values: bezier,
    curviness: 2
  }, opacity: 0, 
     ease: Linear.easeInOut }, 0.06);
  tl.fromTo(k2, 0.8, {
   drawSVG: '50% 50%'
 }, {
   drawSVG: true,
   ease: Power4.easeOut
 }, "begin+=1");
 tl.fromTo(k2, 1, {
   fill: "none"
 }, {
   fill: "black",
   ease: Power4.easeOut
 }, "begin+=1.6");

  tl.timeScale(0.9);

  return tl;
}

var master = new TimelineMax();
master.add(sceneOne(), "scene1");
              
            
!
999px

Console