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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <div class="container">
  <div class="svg-container g">
    <svg width="300px" height="300px" viewBox="0 0 300 300" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
      <g id="Artboard" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <path class="alphabet-g" d="M119.5811,33.5457 L119.5811,48.7547 C119.5811,88.6697 117.0981,120.3827 112.1381,143.8947 C107.1731,167.4117 98.7591,185.3157 86.8971,197.6127 C75.0301,209.9097 58.3081,217.7877 36.7381,221.2357 L49.6821,266.5407 C74.4891,262.8747 94.9311,256.2967 111.0051,246.8017 C127.0751,237.3107 140.0741,223.5017 149.9991,205.3797 L149.9991,33.5457 L119.5811,33.5457 Z" id="Fill-2" fill="#020303"></path>
        <path class="alphabet-g" d="M188.9937,246.8015 C205.0627,256.2965 225.5067,262.8745 250.3167,266.5405 L263.2617,221.2365 C241.6857,217.7875 224.9657,209.9095 213.1027,197.6135 C201.2357,185.3165 192.8217,167.4115 187.8617,143.8945 C182.8957,120.3835 180.4187,88.6695 180.4187,48.7555 L180.4187,33.5455 L149.9997,33.5455 L149.9997,205.3795 C159.9207,223.5015 172.9207,237.3105 188.9937,246.8015" id="Fill-4" fill="#FEFEFE"></path>
        <path class="alphabet-g" d="M119.5811,33.5457 L119.5811,48.7547 C119.5811,88.6697 117.0981,120.3827 112.1381,143.8947 C107.1731,167.4117 98.7591,185.3157 86.8971,197.6127 C75.0301,209.9097 58.3081,217.7877 36.7381,221.2357 L49.6821,266.5407 C74.4891,262.8747 94.9311,256.2967 111.0051,246.8017 C127.0751,237.3107 140.0741,223.5017 149.9991,205.3797 L149.9991,33.5457 L119.5811,33.5457 Z" id="Fill-2" fill="#FEFEFE"></path>
        <path class="alphabet-g" d="M188.9937,246.8015 C205.0627,256.2965 225.5067,262.8745 250.3167,266.5405 L263.2617,221.2365 C241.6857,217.7875 224.9657,209.9095 213.1027,197.6135 C201.2357,185.3165 192.8217,167.4115 187.8617,143.8945 C182.8957,120.3835 180.4187,88.6695 180.4187,48.7555 L180.4187,33.5455 L149.9997,33.5455 L149.9997,205.3795 C159.9207,223.5015 172.9207,237.3105 188.9937,246.8015" id="Fill-4" fill="#020303"></path>
        <path class="alphabet-g" d="M119.5811,33.5457 L119.5811,48.7547 C119.5811,88.6697 117.0981,120.3827 112.1381,143.8947 C107.1731,167.4117 98.7591,185.3157 86.8971,197.6127 C75.0301,209.9097 58.3081,217.7877 36.7381,221.2357 L49.6821,266.5407 C74.4891,262.8747 94.9311,256.2967 111.0051,246.8017 C127.0751,237.3107 140.0741,223.5017 149.9991,205.3797 L149.9991,33.5457 L119.5811,33.5457 Z" id="Fill-2" fill="#020303"></path>
        <path class="alphabet-g" d="M188.9937,246.8015 C205.0627,256.2965 225.5067,262.8745 250.3167,266.5405 L263.2617,221.2365 C241.6857,217.7875 224.9657,209.9095 213.1027,197.6135 C201.2357,185.3165 192.8217,167.4115 187.8617,143.8945 C182.8957,120.3835 180.4187,88.6695 180.4187,48.7555 L180.4187,33.5455 L149.9997,33.5455 L149.9997,205.3795 C159.9207,223.5015 172.9207,237.3105 188.9937,246.8015" id="Fill-4" fill="#FEFEFE"></path>
        <path class="alphabet-g" d="M119.5811,33.5457 L119.5811,48.7547 C119.5811,88.6697 117.0981,120.3827 112.1381,143.8947 C107.1731,167.4117 98.7591,185.3157 86.8971,197.6127 C75.0301,209.9097 58.3081,217.7877 36.7381,221.2357 L49.6821,266.5407 C74.4891,262.8747 94.9311,256.2967 111.0051,246.8017 C127.0751,237.3107 140.0741,223.5017 149.9991,205.3797 L149.9991,33.5457 L119.5811,33.5457 Z" id="Fill-2" fill="#FEFEFE"></path>
        <path class="alphabet-g" d="M188.9937,246.8015 C205.0627,256.2965 225.5067,262.8745 250.3167,266.5405 L263.2617,221.2365 C241.6857,217.7875 224.9657,209.9095 213.1027,197.6135 C201.2357,185.3165 192.8217,167.4115 187.8617,143.8945 C182.8957,120.3835 180.4187,88.6695 180.4187,48.7555 L180.4187,33.5455 L149.9997,33.5455 L149.9997,205.3795 C159.9207,223.5015 172.9207,237.3105 188.9937,246.8015" id="Fill-4" fill="#020303"></path>

      </g>
    </svg>
  </div>  
</div>
              
            
!

CSS

              
                html, body {
  background-color: #FFC803;
  height: 100%;
  margin: 0;
}

.container {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.svg-container {
  padding: 0;
  height: 300px;
  border-radius: 8px;
  transform: scale(1.5);
}

.svg-frame {
  border-radius: 8px;
}

.alphabet-g {
    transform-origin: 50% 50%;
}

.g {
    background-color: #FFC803;
}
              
            
!

JS

              
                anime({
  targets: '.alphabet-g',
  rotateY: '4turn',
  loop: true,
  easing: 'easeInOutExpo',
  duration: 3000,
  delay: anime.stagger(100),
})
              
            
!
999px

Console