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

              
                  <a class="logo-w">
    <svg class="logo" width="686" height="673" viewBox="0 0 686 673" fill="none" xmlns="http://www.w3.org/2000/svg">
      <defs>
        <mask id="mask">
          <line id="maskline" x1="373" y1="769" x2="373" y2="0" fill="none" stroke="#fff" stroke-width="769" />
        </mask>
      </defs>

      <path class="path-fill" mask="url(#mask)" fill-rule="evenodd" clip-rule="evenodd" d="M228.058 672.397H161.875L311.109 392.695L311.501 391.959H310.668H90.6599L43.946 333.586H341.849H342.15L342.291 333.319L364.299 291.529H437.025L414.537 332.847L414.134 333.586H414.976H592.439L645.965 391.959H382.681H382.386L382.243 392.218L228.058 672.397ZM530.709 90.5449V90.0449H530.209H433.194L405.039 54.8022H530.209H530.709V54.3022V27.4718L568.191 0.965978V54.3022V54.8022H568.691H656.424L684.24 90.0449H568.691H568.191V90.5449V254.94L530.709 290.241V90.5449ZM126.709 290.241V90.5449V90.0449H126.209H29.1944L1.03941 54.8022H126.209H126.709V54.3022V27.4717L164.191 0.965978V54.3022V54.8022H164.691H252.424L280.24 90.0449H164.691H164.191V90.5449V254.94L126.709 290.241ZM356.583 472.972L391.048 408.966L568.465 672.5H489.916L356.583 472.972ZM466.5 168.16L519.077 94.7003V141.768L466.5 214.115V168.16ZM631.077 224.115L578.5 151.768V94.7003L631.077 168.161V224.115ZM115.077 141.768L62.5 214.115V168.16L115.077 94.7003V141.768ZM174.5 151.768V94.7003L227.077 168.16V224.115L174.5 151.768ZM377.397 54.7767L301.189 101.842L313.899 64.5647L384.203 23.926L377.397 54.7767ZM364.021 69.5182L392.714 75.9027L364.147 92.4607L335.454 86.1688L364.021 69.5182ZM324.942 29.9663L353.638 36.3515L325.166 52.9084L296.47 46.5232L324.942 29.9663ZM377.397 179.852L301.189 226.917L313.899 189.64L384.203 149.001L377.397 179.852ZM335.454 211.244L364.021 194.593L392.714 200.978L364.147 217.536L335.454 211.244ZM296.47 171.598L324.942 155.042L353.638 161.427L325.166 177.984L296.47 171.598Z" fill="#F6A86F" stroke="none" />

      <path class="path-stroke" id="logo-stroke" fill-rule="evenodd" clip-rule="evenodd" d="M228.058 672.397H161.875L311.109 392.695L311.501 391.959H310.668H90.6599L43.946 333.586H341.849H342.15L342.291 333.319L364.299 291.529H437.025L414.537 332.847L414.134 333.586H414.976H592.439L645.965 391.959H382.681H382.386L382.243 392.218L228.058 672.397ZM530.709 90.5449V90.0449H530.209H433.194L405.039 54.8022H530.209H530.709V54.3022V27.4718L568.191 0.965978V54.3022V54.8022H568.691H656.424L684.24 90.0449H568.691H568.191V90.5449V254.94L530.709 290.241V90.5449ZM126.709 290.241V90.5449V90.0449H126.209H29.1944L1.03941 54.8022H126.209H126.709V54.3022V27.4717L164.191 0.965978V54.3022V54.8022H164.691H252.424L280.24 90.0449H164.691H164.191V90.5449V254.94L126.709 290.241ZM356.583 472.972L391.048 408.966L568.465 672.5H489.916L356.583 472.972ZM466.5 168.16L519.077 94.7003V141.768L466.5 214.115V168.16ZM631.077 224.115L578.5 151.768V94.7003L631.077 168.161V224.115ZM115.077 141.768L62.5 214.115V168.16L115.077 94.7003V141.768ZM174.5 151.768V94.7003L227.077 168.16V224.115L174.5 151.768ZM377.397 54.7767L301.189 101.842L313.899 64.5647L384.203 23.926L377.397 54.7767ZM364.021 69.5182L392.714 75.9027L364.147 92.4607L335.454 86.1688L364.021 69.5182ZM324.942 29.9663L353.638 36.3515L325.166 52.9084L296.47 46.5232L324.942 29.9663ZM377.397 179.852L301.189 226.917L313.899 189.64L384.203 149.001L377.397 179.852ZM335.454 211.244L364.021 194.593L392.714 200.978L364.147 217.536L335.454 211.244ZM296.47 171.598L324.942 155.042L353.638 161.427L325.166 177.984L296.47 171.598Z" fill="none" stroke="#F6A86F" stroke-width="2" />
    </svg>

    <svg class="logo-outline" width="808" height="808" viewBox="0 0 808 808" fill="none" xmlns="http://www.w3.org/2000/svg">
      <path id="logo-outline" d="M0.5 807.5V0.5H807.5V807.5H0.5Z" stroke="#F6A86F" stroke-width="3" />
    </svg>
  </a>


              
            
!

CSS

              
                .logo-w {
  --logo-padding: 3vw;
  z-index: 500;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  will-change: transform;

  .logo {
    position: absolute;
    top: calc(var(--logo-padding) / 2);
    left: calc(var(--logo-padding) / 2);
    width: calc(100% - var(--logo-padding));
    height: calc(100% - var(--logo-padding));
  }
  .logo-outline {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }
}

.site-outline-w {
  --offsetX: 5vw;
  --offsetY: 2.5vh;
  z-index: 700;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 0;
  padding-bottom: 400px;
  will-change: transform;
  pointer-events: none;
}

.site-outline {
  position: absolute;
  top: 0;
  left: 0;
  width: 40vw;
  height: 40vw;
  will-change: transform;
}

              
            
!

JS

              
                // import gsap from 'gsap';
// import DrawSVGPlugin from 'gsap/DrawSVGPlugin';
// import GSDevTools from 'gsap/GSDevTools';

gsap.registerPlugin(DrawSVGPlugin);
// gsap.registerPlugin(GSDevTools);
// GSDevTools.create();

gsap
  .timeline()
  .addLabel('start')
  .from('#logo-outline', { duration: 2, drawSVG: 0 }, 'start')
  .from('#logo-stroke', { duration: 12, drawSVG: 0 }, 'start')
  .from('#site-outline', { duration: 2, drawSVG: 0 }, 'start');

const tlMask = gsap
  .timeline({
    paused: true,
    ease: 'sine.out',
    onComplete: () => {
      // Done loading images, show all images
      document.documentElement.classList.remove('loading');
    },
  })
  .from('#maskline', { duration: 2, drawSVG: 0 });


              
            
!
999px

Console