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

              
                <div class="afexlogo">



<div class="afexlogo-right">
  <svg class="afex afll b1-afexlogo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 349.68 474.99">
    <path id="b1-afex" d="M299.67,474.49c0,0-234.46,0.5-249.5,0.5h0h0c-27.61,0-50-22.39-50-50v0v-125v0c0-27.61,22.39-50,50-50h0h0
    	c14.64,0,27.82,6.29,36.96,16.33c8.05,8.83,47.5,63.13,49.6,65.65c9.17,11.01,22.99,18.02,38.44,18.02h0h0c27.61,0,50-22.39,50-50v0
    	v0c0-25.17-18.6-46-42.8-49.49c-2.35-0.34-139.02-25.86-142.28-26.53c-22.78-4.66-39.92-24.82-39.92-48.98v0
    	c0-0.08,0.05-0.34,0-0.26c-0.07,0.11-0.12-0.37-0.13-1.29c0-0.07,0-0.14,0-0.22C-0.18,159.99,0.67,49.49,0.67,49.49l0,0
    	C0.12,22.51,21.7,0.27,48.68,0l0,0c29.05-0.29,53.4,21.86,55.87,50.8c2.55,29.91,20.12,123.68,20.12,124.68v0
    	c0,22.86,15.36,42.19,36.4,48.12c4.01,1.13,146.33,27.1,149.54,27.71c22.49,4.25,39.47,24.21,39.06,48.04c0,0.07,0,0.12,0,0.14
    	c-0.1,19.71,0.29,80.81,0.61,125.5l0.01,0.85c0.2,27.2-22.08,49.21-49.28,48.67L299.67,474.49z" fill="#bdc91a"/>
    <path id="b12-afex" d="M210.64,460.17c-8.76,8.84-20.92,14.31-34.35,14.31c-0.24,0-0.47,0-0.71,0c0,0-110.36,0.5-125.41,0.5h0h0
     c-27.61,0-50-22.39-50-50v0v-125v0c0-27.61,22.39-50,50-50h0h0c14.64,0,27.82,6.29,36.96,16.33c8.05,8.83,47.5,63.13,49.6,65.65
     c9.17,11.01,22.99,18.02,38.44,18.02h0h0c27.61,0,50-22.39,50-50v0v0c0-25.17-18.6-46-42.8-49.49
     c-2.35-0.34-139.02-25.86-142.28-26.53c-22.78-4.66-39.92-24.82-39.92-48.98v0c0-0.08,0.05-0.34,0-0.26
     c-0.07,0.11-0.12-0.37-0.13-1.29c0-0.07,0-0.14,0-0.22C-0.18,159.99,0.67,49.49,0.67,49.49l0,0C0.12,22.51,21.7,0.27,48.68,0l0,0
     c29.05-0.29,53.4,21.86,55.87,50.8c2.55,29.91,20.12,123.68,20.12,124.68v0c0,22.86,15.36,42.19,36.4,48.12
     c4.01,1.13,146.33,27.1,149.54,27.71c22.49,4.25,39.47,24.21,39.06,48.04c0,0.07,0,0.12,0,0.14c0,0.41,0,0.8-0.01,1.18
     c-0.06,15.91-7.68,30.02-19.46,38.94C321.99,345.83,211.88,458.91,210.64,460.17z" fill="#bdc91a"/>
  </svg>
  
    <svg class="afex afll b2-afexlogo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 349.68 474.99">
    <path id="b2-afex" d="M299.67 474.49s-234.46.5-249.5.5c-27.61 0-50-22.39-50-50v-125c0-27.61 22.39-50 50-50 14.64 0 27.82 6.29 36.96 16.33 8.05 8.83 47.5 63.13 49.6 65.65 9.17 11.01 22.99 18.02 38.44 18.02 27.61 0 50-22.39 50-50 0-25.17-18.6-46-42.8-49.49-2.35-.34-139.02-25.86-142.28-26.53C17.31 219.31.17 199.15.17 174.99c0-.08.05-.34 0-.26-.07.11-.12-.37-.13-1.29v-.22C-.18 159.99.67 49.49.67 49.49.12 22.51 21.7.27 48.68 0c29.05-.29 53.4 21.86 55.87 50.8 2.55 29.91 20.12 123.68 20.12 124.68 0 22.86 15.36 42.19 36.4 48.12 4.01 1.13 146.33 27.1 149.54 27.71 22.49 4.25 39.47 24.21 39.06 48.04v.14c-.1 19.71.29 80.81.61 125.5l.01.85c.2 27.2-22.08 49.21-49.28 48.67l-1.34-.02z" fill="#bdc91a"/>
    <path id="b22-afex" d="M210.64 460.17c-8.76 8.84-20.92 14.31-34.35 14.31h-.71s-110.36.5-125.41.5c-27.61 0-50-22.39-50-50v-125c0-27.61 22.39-50 50-50 14.64 0 27.82 6.29 36.96 16.33 8.05 8.83 47.5 63.13 49.6 65.65 9.17 11.01 22.99 18.02 38.44 18.02 27.61 0 50-22.39 50-50 0-25.17-18.6-46-42.8-49.49-2.35-.34-139.02-25.86-142.28-26.53C17.31 219.3.17 199.14.17 174.98c0-.08.05-.34 0-.26-.07.11-.12-.37-.13-1.29v-.22C-.18 159.99.67 49.49.67 49.49.12 22.51 21.7.27 48.68 0c29.05-.29 53.4 21.86 55.87 50.8 2.55 29.91 20.12 123.68 20.12 124.68 0 22.86 15.36 42.19 36.4 48.12 4.01 1.13 146.33 27.1 149.54 27.71 22.49 4.25 39.47 24.21 39.06 48.04v.14c0 .41 0 .8-.01 1.18-.06 15.91-7.68 30.02-19.46 38.94-8.21 6.22-118.32 119.3-119.56 120.56z" fill="#bdc91a"/>
  </svg>
</div>


</div>
</div>

<div class="afexlogo-right">
  <svg class="afex afrr j1-afexlogo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 368.78 500.01">
    <path id="j1-afex" d="M313.98 499.49c-.43 0-247 .52-263.17.52A50.54 50.54 0 01.29 449.45c-.9-3.9.64-129.53 0-133.13a53.7 53.7 0 0151.53-53.64c45-2.28 69 69.46 98.65 94.34 32.15 27.62 86.58 1.58 85.09-41.23 0-8.68 1.59-132.1 1.59-132.12a51.16 51.16 0 00-33.55-48c-3.21-1.18-163.33-31-169-33.13C13.45 94.86-.83 73.59.3 50.05A49.06 49.06 0 0149 .05c.59-.12 216.27.43 268.2.47a51.61 51.61 0 0151.56 51.58c2.15 41.58-58.32 64.07-87.43 91.77a53.79 53.79 0 00-18.89 40.07 51.75 51.75 0 0018.67 40.32c9 7.53 57 44 62.33 47.45a50.54 50.54 0 0123.21 43.56c-.11 20.74.31 85.06.65 132.11a51 51 0 01-53.32 52.11z" fill="#bdc91a"/>
    <path id="j2-afex" d="M444.83 499.55c-119.51-.75-253.08 1.16-392.22.18A52.76 52.76 0 01.03 446.98V315.55a52.59 52.59 0 0150.43-52.54c62.83-2.64 70.35 106.72 132.54 105.11 0 0 114.66.53 130.91.53a52.58 52.58 0 0017-102.34c-38.6-12.4-92.21-28.8-95.36-91.76a52.68 52.68 0 00-42-41.11c-.06 0-146.6-28.35-148.82-28.64C-17.84 96.17-12.5 1.55 51.16.1c70.47-.49 344.93 1 396.81 1a51.56 51.56 0 0151.52 51.56 52.6 52.6 0 01-42.42 51.59c-3.57.7-151.63 27.84-155.86 28.91-51.75 12.43-53.9 88.52-2.14 102.59 4.22 1.18 153.87 28.49 157.24 29.13a50.55 50.55 0 0141.08 50.51c-.11 20.88.29 85 .64 132.11a50.9 50.9 0 01-53.2 52.05z" fill="#bdc91a"/>
  </svg>

<svg class="afex afrr a1-afexlogo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 369.1 500.01">
  <path id="a1-afex" d="M102.13 463.5a52.2 52.2 0 01-102-15.07c-.47-.62.34-239.72 0-265.36a51.37 51.37 0 0117.28-38.48c3.1-2.73 123.1-122.83 125.64-125.92A50.46 50.46 0 01183.48.02c10.6.22 80.14.16 130.87.09a54.17 54.17 0 0154.2 52.17 51.63 51.63 0 01-36.08 49.59c-5.21 1.64-158.61 29.27-162.17 30.14a51.22 51.22 0 00-39.1 49.75c-2.26 44.74 55.74 70.55 87.82 40.59 28.83-25.29 51.38-94.45 96.39-91.31a52.65 52.65 0 0152.63 52.63s.59 214.7 1 262.64c1.15 59.35-85.76 72.06-103.13 16.54-.62-1.86-30.37-154-31-157.38-4.64-24.13-25.89-42.19-51.09-42.85a52.9 52.9 0 00-51.59 40c-.93 3.82-29.18 157.87-30.1 160.88z" fill="#bdc91a"/>
  <path id="a2-afex" d="M213.22 403.01a51.78 51.78 0 0123.62 44.4 52.63 52.63 0 01-52.63 52.6H51.58A51.6 51.6 0 01.01 447.38s.33-237.58 0-264.3a51.37 51.37 0 0117.28-38.48c3.07-2.73 123.07-122.8 125.61-125.92A50.47 50.47 0 01183.34.01c10.59.22 80.13.16 130.87.09 59.07-.27 75.23 83.45 18.12 101.76-5.21 1.65-158.61 29.28-162.17 30.15-58.75 13.84-47 104 13.53 103.26a51.35 51.35 0 0035.18-12.9c10.69-9.44 48.4-64.71 56.34-73.8 29.45-35.86 94.49-12.37 92.68 35.13-.14 93.76-.1 154.27 1.05 262.63 1.16 59.36-85.76 72-103.12 16.54-.62-1.86-30.37-154-31-157.38-4.65-24.13-25.89-42.19-51.1-42.85-47-.48-68.5 55-37.75 88.47 9.5 10.4 58.91 46.46 67.25 51.9z" fill="#bdc91a"/>
</svg>
  <svg class="afex afrr y1-afexlogo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500.01">
    <path id="y1-afex" d="M250 500.01a71.42 71.42 0 01-71.42-71.43V267.01a35.69 35.69 0 00-13.22-27.75c-35-28.4-128.18-103.92-138-111.65A71.43 71.43 0 0172.13.01c82.35.58 91.11 142.81 177.16 143.56h1.42s33.27-6.19 45.66-16.5C339.19 90.65 365.59-1.05 428.57.01a71.44 71.44 0 0142.73 128.68c-9.5 7.1-99.08 80-135 109.24a40.24 40.24 0 00-14.83 31.21v159.45A71.42 71.42 0 01250 500.01z" fill="#bdc91a"/>
    <path id="y2-afex" d="M175 474.53a50 50 0 01-50-50V311.45a25 25 0 00-9.25-19.43c-24.52-19.87-89.73-72.74-96.62-78.15A49.92 49.92 0 010 174.65C0 157.34.5 49.1.5 49.03a49 49 0 0149-49A48.26 48.26 0 0193.8 25.3c.9 1.67 32.35 157.77 33.28 161.44 5.42 21.31 24.54 37 47.43 38.29a50 50 0 0047.86-35.5c1.38-4.59 29.28-152.63 31.39-158.1 17.7-48.92 97.43-37.64 96.58 16.6-2.1 183.88 23.23 128.38-115 243.05A28.2 28.2 0 00225 312.92v111.61a50 50 0 01-50 50z" fill="#bdc91a"/>
  </svg>


  <svg class="afex afrr d1-afexlogo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 350.12 500">
    <path id="d1-afex" d="M49.28 499.5C22.08 500.06-.2 476.89 0 448.26v-.9c.32-47 .71-111.36.61-132.11v-.14c-.4-25.09 16.58-46.09 39.04-50.57 3.21-.64 145.53-28 149.54-29.16 21-6.24 31.43-27.36 36.4-50.66 0-1 17.57-99.76 20.12-131.24C248.21 23.02 272.56-.3 301.65.02c27 .28 48.56 23.69 48 52.09l.5 132.11c0 25.43-17.14 46.65-39.92 51.56-3.25.7-139.93 27.57-142.28 27.93-24.2 3.67-42.8 25.59-42.8 52.09 0 29.07 22.39 52.63 50 52.63a49 49 0 0038.44-19c2.1-2.65 41.55-59.81 49.6-69.11a48.78 48.78 0 0137-17.18c27.61 0 50 23.56 50 52.63v131.59c0 29.07-22.39 52.64-50 52.64-15 0-249.5-.53-249.5-.53z" fill="#bdc91a"/>
    <path id="d2-afex" d="M19.47 338.69A49.17 49.17 0 01.01 298.43a48.07 48.07 0 0139.06-48c3.21-.61 145.53-26.58 149.54-27.71a50 50 0 0036.4-48.12c0-1 17.57-94.77 20.12-124.68 3.92-63.64 103.5-68.88 103.88-1.32-.17.94 1.18 111.44.5 125.24a50 50 0 01-39.92 49.26c-3.25.67-139.93 26.2-142.28 26.53a50 50 0 00-42.8 49.47c-1.66 45.78 61 67.52 88.44 32 2.1-2.52 41.55-56.83 49.6-65.65 28.36-33.48 88.53-11 87 33.67V424.1a50 50 0 01-50 50c-15 0-74.5-.5-74.5-.5-23.29-1.67-69.28 7-86-14.31C137.8 458 27.69 344.91 19.47 338.69z" fill="#bdc91a"/>
  </svg>

  <svg class="afex afrr e2-afexlogo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 368.69 500.0">
    <path id="e3-afex" d="M368.28 189.49a48.1 48.1 0 01-13.44 33.53c-3.1 3.28-134.27 132.13-138.28 135.1-32.95 25.14-85.84-.43-84.46-42.82a51 51 0 0117.5-40.06c9.09-7.93 64.35-45.64 73.79-56.33 30-32.06 4.15-90.1-40.59-87.81a51.19 51.19 0 00-45.55 27.79c-3.46 6.72-30.94 156.93-30.94 156.93-2.47 42.37 31.39 78.69 74.06 78l135.66-.07c68.65.71 71.2 103.73 1.58 105.46-39.88.18-229.27 1-265 .83A53.72 53.72 0 01-.02 447.43V315.82c0-.37 1.22-124.65 1.05-132.88a51.22 51.22 0 0110.24-31.55c4.55-6.09 137.9-138.16 142.78-141.67a51.24 51.24 0 0130-9.66h130.69c30.15-1.49 55 23.85 53.26 53.92-.1 10.67.13 84.37.28 135.51z" fill="#bdc91a"/>
    <path id="e4-afex" d="M357.19 151.97c15.65 19.14 15.48 53.25-2.28 71-3.11 3.24-134.28 132.1-138.28 135.07a49.89 49.89 0 01-29.21 9.78c-48.62 4.07-74.62-62.32-37.76-92.71 9.09-7.93 64.35-45.64 73.8-56.33 29.67-31.76 4.64-89.38-39.73-87.82a51.29 51.29 0 00-46.43 27.79c-3.46 6.73-30.94 157-30.94 157 2.3 159.57 254.69 4.84 263.16 131.31a52 52 0 01-51.84 52l-211.32.83c-44.41.27-101.73 8.45-106.31-52.64-.23-68.82.42-190.68 1-264.47a51.37 51.37 0 0110.24-31.55c207.03-205.81 145.12-197.68 345.9.74z" fill="#bdc91a"/>
  </svg>

  <svg class="afex afrr e1-afexlogo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 368.69 500.0">
    <path id="e1-afex" d="M368.28 189.49a48.1 48.1 0 01-13.44 33.53c-3.1 3.28-134.27 132.13-138.28 135.1-32.95 25.14-85.84-.43-84.46-42.82a51 51 0 0117.5-40.06c9.09-7.93 64.35-45.64 73.79-56.33 30-32.06 4.15-90.1-40.59-87.81a51.19 51.19 0 00-45.55 27.79c-3.46 6.72-30.94 156.93-30.94 156.93-2.47 42.37 31.39 78.69 74.06 78l135.66-.07c68.65.71 71.2 103.73 1.58 105.46-39.88.18-229.27 1-265 .83A53.72 53.72 0 01-.02 447.43V315.82c0-.37 1.22-124.65 1.05-132.88a51.22 51.22 0 0110.24-31.55c4.55-6.09 137.9-138.16 142.78-141.67a51.24 51.24 0 0130-9.66h130.69c30.15-1.49 55 23.85 53.26 53.92-.1 10.67.13 84.37.28 135.51z" fill="#bdc91a"/>
    <path id="e2-afex"d="M368.92 315.28c-2.41 60.24-62.48 53.47-105.78 52.1-44.42-1.62-130.25 16.81-131-52.11a51 51 0 0117.5-40c9.09-7.93 64.35-45.64 73.79-56.33 30-32 4.15-90.1-40.59-87.81a51.19 51.19 0 00-45.55 27.79c-3.46 6.72-30.94 156.93-30.94 156.93-2.47 42.37 31.39 78.68 74.06 78l135.66-.07c68.32-.16 70.84 104.61 1.57 105.46-39.81.17-229.3 1-265 .83A53.72 53.72 0 01.01 447.46V315.8c1.55-84.83.63-157.81 1-265.45A50.39 50.39 0 0151.36 0H316.1a50.87 50.87 0 0151.87 51.23c.06 16.84.77 247.1.95 264.05z" fill="#bdc91a"/>
  </svg>



</div>
</div>
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  background-color: #E0804D;
  font-family: uniwars,sans-serif;
  font-weight: 600;
  font-style: italic;

  overflow-x: hidden;
  overflow-y: hidden;
}
.afexlogo{
  margin-top: 10vh;
  margin-left: 10vw;
  display: flex;
  cursor: pointer;
}
.afexlogo-left{
  margin-right: 25px;
}
.afex{
  height: 150px;
  margin-right: 3px;
}
.d1-afexlogo{
  margin-left: -33px;
}

#a2-afex{
  visibility: hidden;
}
#y2-afex{
  visibility: hidden;
}
#d2-afex{
  visibility: hidden;
}
#e2-afex{
  visibility: hidden;
}
#e4-afex{
  visibility: hidden;
}

#j2-afex{
  visibility: hidden;
}

.j1-afexlogo{
  width:200px;
  margin-right: -35px;
}
              
            
!

JS

              
                
gsap.registerPlugin(MorphSVGPlugin);
 
MorphSVGPlugin.defaultType = "rotational";


const b1 = document.querySelector(".b1-afexlogo");
b1.addEventListener("mouseenter", () => {
  const  tlL1 = gsap.timeline()
tlL1.to("#b1-afex", { duration: 1,
    morphSVG: {
    shape: "#b12-afex",
    //origin: "121% 64%",
    ease: Power4.easeOut
    }
   })
.to("#b1-afex", { duration: 2.5,
    morphSVG: {
    shape: "#b1-afex",
   // origin: "121% 64%",
    ease: Power4.easeOut
    }
   })
});


const b2 = document.querySelector(".b2-afexlogo");
b2.addEventListener("mouseenter", () => {
  const  tlL2 = gsap.timeline()
tlL2.to("#b2-afex", { duration: 1,
    morphSVG: {
    shape: "#b22-afex",
    origin: "121% 64%",
    ease: Power4.easeOut
    }
   })
.to("#b2-afex", { duration: 2.5,
    morphSVG: {
    shape: "#b2-afex",
    origin: "121% 64%",
    ease: Power4.easeOut
    }
   })
});

/////////////////////////////



const e1 = document.querySelector(".e1-afexlogo");
e1.addEventListener("mouseenter", () => {
const  tl1 = gsap.timeline()
tl1.to("#e1-afex", { duration: 1,
    morphSVG: {
    shape: "#e2-afex",
    ease: Power4.easeOut
    }
   })
.to("#e1-afex", { duration: 2.5,
    morphSVG: {
    shape: "#e1-afex",
    ease: Power4.easeOut
    }
   })
});

const e2 = document.querySelector(".e2-afexlogo");
e2.addEventListener("mouseenter", () => {
  const  tl2 = gsap.timeline()
tl2.to("#e3-afex", { duration: 1,
    morphSVG: {
    shape: "#e4-afex",
    origin: "49% 17%",
    ease: Power4.easeOut
    }
   })
.to("#e3-afex", { duration: 2.5,
    morphSVG: {
    shape: "#e3-afex",
    origin: "49% 17%",
    ease: Power4.easeOut
    }
   })
});

const d1 = document.querySelector(".d1-afexlogo");
d1.addEventListener("mouseenter", () => {
  const  tl3 = gsap.timeline()
tl3.to("#d1-afex", { duration: 1,
    morphSVG: {
    shape: "#d2-afex",
    origin: "121% 64%",
    ease: Power4.easeOut
    }
   })
.to("#d1-afex", { duration: 2.5,
    morphSVG: {
    shape: "#d1-afex",
    origin: "121% 64%",
    ease: Power4.easeOut
    }
   })
});

const y1 = document.querySelector(".y1-afexlogo");
y1.addEventListener("mouseenter", () => {
  const  tl4 = gsap.timeline()
tl4.to("#y1-afex", { duration: 1, x:60,
    morphSVG: {
    shape: "#y2-afex",
    origin: "50% 1%",
    ease: Power4.easeOut
    }
   })
.to("#y1-afex", { duration: 2.5, x:0,
    morphSVG: {
    shape: "#y1-afex",
    origin: "50% 1%",
    ease: Power4.easeOut
    }
   })
});

const a1 = document.querySelector(".a1-afexlogo");
a1.addEventListener("mouseenter", () => {
  const  tl5 = gsap.timeline()
tl5.to("#a1-afex", { duration: 1,
    morphSVG: {
    shape: "#a2-afex",
    origin: "75% 26%",
    ease: Power4.easeOut
    }
   })
.to("#a1-afex", { duration: 2.5,
    morphSVG: {
    shape: "#a1-afex",
    origin: "75% 26%",
    ease: Power4.easeOut
    }
   })
});

const j1 = document.getElementById('j1-afex');
j1.addEventListener("mouseenter", () => {
  const  tl6 = gsap.timeline()
tl6.to("#j1-afex", { duration: 1, x:-100,
    morphSVG: {
    shape: "#j2-afex",
    origin: "51% 13%",
    ease: Power4.easeOut
    }
   })
.to("#j1-afex", { duration: 2.5, x:0,
    morphSVG: {
    shape: "#j1-afex",
    origin: "51% 13%",
    ease: Power4.easeOut
    }
   })
});
////////////////////////////////////////////////////////
              
            
!
999px

Console