Pen Settings



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


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


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.


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.


                    <div class="logo-container">
        <svg class="logo-spinner" xmlns="" xmlns:xlink=""
            width="726.384" height="723.429" viewBox="0 0 726.384 723.429">
                <clipPath id="clip-path">
                    <path class="path-fill" id="Path_3321" data-name="Path 3321" d="M0,74.695H726.384V-648.734H0Z"
                        transform="translate(0 648.734)" fill="#ff0" />
            <g id="Group_6911" data-name="Group 6911" transform="translate(0 648.734)">
                <g id="Group_6910" data-name="Group 6910" transform="translate(0 -648.734)" clip-path="url(#clip-path)">
                    <g id="Group_6906" data-name="Group 6906" transform="translate(427.931 110.443)">
                        <path class="path-fill" id="Path_3317" data-name="Path 3317"
                            transform="translate(31.248 109.364)" fill="#ff0" />
                    <g id="Group_6907" data-name="Group 6907" transform="translate(0 296.975)">
                        <path class="path-fill" id="Path_3318" data-name="Path 3318"
                            transform="translate(236.389 174.019)" fill="#ff0" />
                    <g id="Group_6908" data-name="Group 6908" transform="translate(111.921 0)">
                        <path class="path-fill" id="Path_3319" data-name="Path 3319"
                            transform="translate(255.084)" fill="#ff0" />
                    <g id="Group_6909" data-name="Group 6909" transform="translate(298.452 426.454)">
                        <path class="path-fill" id="Path_3320" data-name="Path 3320"
                            transform="translate(283.383)" fill="#ff0" />



  box-sizing: border-box;
  margin: 0;
  padding: 0;

section {
  height: 100vh;
  background: grey;
  border: 1px solid red;

.logo-container {
  position: fixed;
  z-index: 2; 

.logo-container svg {
    height: 100px;
    width: auto;
    transition: all 0.2s ease-out;


                $(document).ready(function ($) {  

  gsap.set(".logo-container", { xPercent: 200, yPercent: 25 });

 var rotate = gsap
      scrollTrigger: {
        trigger: ".logo-container",
        pin: false,
        scrub: 0.2,
        start: "center center",
        end: "+=10000",
    .to(".logo-container", {
      rotation: 360 * 5,
      duration: 1,
      ease: "none",
    .to(".logo-spinner path", {
      fill: "#404040", // animate to this color as you scroll
      duration: 1,
      ease: "power3.out",
      stagger: {
        amount: 0.1,