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 still not optimal !!! --->

<svg id="logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 169.5 170.5" >
  <g id="layer1" transform="translate(-310.712 -449.123)">
    <path d="M480.222 534.164c0 46.966-37.946 85.04-84.755 85.04s-84.755-38.074-84.755-85.04c0-46.967 37.946-85.04 84.755-85.04 46.81 0 84.755 38.073 84.755 85.04z" id="path3793-1" fill="#c6c3c0"/>
    <path id="blackCircle"d="M473.198 533.96c0 42.93-34.801 77.73-77.73 77.73-42.93 0-77.73-34.8-77.73-77.73 0-42.929 34.8-77.73 77.73-77.73 42.929 0 77.73 34.801 77.73 77.73z" />
    <path id="ring" d="M472.05 534.164c0 42.295-34.287 76.582-76.583 76.582-42.295 0-76.582-34.287-76.582-76.582 0-42.296 34.287-76.583 76.582-76.583 42.296 0 76.583 34.287 76.583 76.583z"  fill="none" stroke="#b4b6b5" stroke-width=".603"/>
    <path id="C" d="M421.919 512.117c-6.821-.246-9.458-.605-11.035 4.058-.361.751-.485 2.499-.542 5.241l-.285 13.625c-.114 5.442-18.664 8.863-30.71 8.863-13.172 0-25.826-3.589-34.54-10.765-8.955-7.327-13.432-16.739-13.432-28.236 1.861-22.324 27.225-35.461 47.248-35.691 13.794-.004 16.192 4.618 24.567 5.58 2.49 0 4.417-1.842 5.782-5.524h2.229v26.94h-2.229c-4.566-14.25-13.786-23.44-30.04-22.544-19.948 2.88-31.028 16.538-32.24 30.62-1.136 16.84 9.215 34.62 32.313 36.137 4.956.267 13.76-.4 16.899-3.779 5.71-5.49 4.954-12.977 1.838-20.016-2.124-3.326-5.272-4.486-8.56-4.509h-2.108v-2.085h34.845z" fill="#5b5a59" />
    <path id="A" d="M460.763 595.921H414.65v-2.167h1.734c5.692 0 8.538-1.328 8.538-3.984 0-.625-.129-1.347-.385-2.168-.171-.546-.813-2.011-1.926-4.394l-4.622-9.9h-31.606l-3.66 7.733c-1.197 2.539-1.797 4.667-1.797 6.386 0 2.226 1.84 3.866 3.81 4.92 1.155.626 4 1.094 8.537 1.407v2.167h-28.952v-2.167c3.809-.508 7.019-2.422 9.63-5.742 1.283-1.6 3.123-4.862 5.52-9.783l31.135-63.39h1.22l31.392 65.147c2.953 6.132 5.414 10.018 7.382 11.659 1.455 1.21 7.51 1.914 10.163 2.109zm-44.386-25.558l-14.394-28.75-13.924 28.75z" fill="#5b5a59"/>
    <path id="morphToC" d="M367.326 493.993h22.52a7.32 7.32 0 0 1 7.336 7.335v10.434a7.32 7.32 0 0 1-7.335 7.335h-22.521a7.32 7.32 0 0 1-7.335-7.335v-10.434a7.32 7.32 0 0 1 7.335-7.335z" />
    <path id="morphToA"d="M397.699 557.218h18.492c1.144 0 2.066.922 2.066 2.067v31.819a2.062 2.062 0 0 1-2.066 2.066h-18.492a2.062 2.062 0 0 1-2.067-2.066v-31.82c0-1.144.922-2.066 2.067-2.066z" />
  </g>
</svg>
              
            
!

CSS

              
                body{
  background:grey;
  height:100vh;
  margin:0;
}
#logo{
  height: 80vh;
  margin: 5vh;
}
#C, #A{
  visibility:hidden;
}

              
            
!

JS

              
                

TweenLite.set('#morphToC,#morphToA',{fill:'none'});

var action = new TimelineMax({repeat:2,repeatDelay:1,delay:1})
.staggerFrom('#blackCircle, #ring',0.4,{scale:0, transformOrigin:"center", ease: Sine.easeIn},0.1)
.to("#morphToC",1,{morphSVG: "#C", fill:'#5b5a59', ease: Expo.easeInOut})
.to("#morphToA",1,{morphSVG: "#A", fill:'#5b5a59', ease: Expo.easeInOut},"-=0.8")


              
            
!
999px

Console