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 class="mainmmmdrop drop11954" id="mmm11954"  viewBox="0 0 730 500" width="1000" height="685">

<image  href="https://cdn.shopify.com/s/files/1/0537/2038/3657/files/LABL_HL_top.png?v=1618796419" x=" 0" y="0" width="729" height="71" />
<image class="lowglow" href="https://cdn.shopify.com/s/files/1/0537/2038/3657/files/LABL_HL_bottom.png?v=1618796418" x=" 0" y="0" width="729" height="71" />



  <path class="start" d="M706.51,0L21.84,0.45C9.76,0.46-0.01,11.46,0,25.01l0.01,10L0.02,46.2c0.01,13.17,9.54,23.84,21.28,23.83
 l685.28-0.45c11.74-0.02,21.25-10.71,21.23-23.88l-0.01-10.68l-0.01-11.19C727.78,10.65,718.25-0.02,706.51,0z M723.56,40.46
 c0.01,13.17-9.49,23.87-21.23,23.88l-472.38,0.34c-11.74,0.02-21.27-10.65-21.28-23.83l-0.01-5.9l-0.01-4.81
 c-0.01-13.55,9.76-24.55,21.84-24.57l471.77-0.34c11.74-0.02,21.27,10.65,21.28,23.83l0.01,5.94L723.56,40.46z" fill="#bdc91a" />

  <path class="end" d="M706.51,0L21.84,0.45C9.76,0.46-0.01,11.46,0,25.01l0.01,10L0.02,470.2c0.01,13.17,9.54,23.84,21.28,23.83
  	l685.28-0.45c11.74-0.02,21.25-10.71,21.23-23.88L727.8,35.02l-0.01-11.19C727.78,10.65,718.25-0.02,706.51,0z M723.56,464.46
  	c0.01,13.17-9.49,23.87-21.23,23.88l-472.38,0.34c-11.74,0.02-21.27-10.65-21.28-23.83l-0.01-429.85l-0.01-4.85
  	c-0.01-13.55,9.76-24.55,21.84-24.57l471.77-0.34c11.74-0.02,21.27,10.65,21.28,23.83l0.01,5.9L723.56,464.46z" fill="#bdc91a" />


    <defs>
      <clipPath id="theClipPath1">
          <rect class="rect" x="10" y="40" width="700" height="430" fill="red" />
      </clipPath>
    </defs>

  <g clip-path="url(#theClipPath1)">
    <image class="imageee1 iimmgg" href="https://cdn.shopify.com/s/files/1/0537/2038/3657/files/11954_screenshot.png?v=1618237836" x="270" y="70" width="401" height="365" />
    <text class="textdecor textheader hhddrr"  x="25" y="100" >11954.UK</text>
  <text class="textdecor textcopy ttcc" x="17" y="140">
                          British clothing
    <tspan x="17" y="160">brand - </tspan>
    <tspan x="17" y="180">intergrated into</tspan>
    <tspan x="17" y="200">the Shopify</tspan>
    <tspan x="17" y="220"> platform</tspan>
  </text>
 </g>




    <text  class="textdecor mainname yy1" x="25" y="45"> #1 </text>
    <text class="textdecor mainname yy1 hlll1" x="355" y="45"> 11954.UK </text>


    <rect  class="proj11954 hotspot" x="0" y="0" width="720" height="70" fill="red" opacity="0"  />
</svg>

<!-- /////////////////////////////////////////////////  -->


<svg class="mainmmmdrop dropDWF" id="mmmDWF"  x=" 0" y="0" viewBox="0 0 730 500" width="1000" height="685">

<image  href="https://cdn.shopify.com/s/files/1/0537/2038/3657/files/LABL_HL_top.png?v=1618796419" x=" 0" y="0" width="729" height="71" />
<image class="lowglow" href="https://cdn.shopify.com/s/files/1/0537/2038/3657/files/LABL_HL_bottom.png?v=1618796418" x=" 0" y="0" width="729" height="71" />

 
  <path class="start" d="M706.51,0L21.84,0.45C9.76,0.46-0.01,11.46,0,25.01l0.01,10L0.02,46.2c0.01,13.17,9.54,23.84,21.28,23.83
 l685.28-0.45c11.74-0.02,21.25-10.71,21.23-23.88l-0.01-10.68l-0.01-11.19C727.78,10.65,718.25-0.02,706.51,0z M723.56,40.46
 c0.01,13.17-9.49,23.87-21.23,23.88l-472.38,0.34c-11.74,0.02-21.27-10.65-21.28-23.83l-0.01-5.9l-0.01-4.81
 c-0.01-13.55,9.76-24.55,21.84-24.57l471.77-0.34c11.74-0.02,21.27,10.65,21.28,23.83l0.01,5.94L723.56,40.46z" fill="#bdc91a" />

  <path class="end" d="M706.51,0L21.84,0.45C9.76,0.46-0.01,11.46,0,25.01l0.01,10L0.02,470.2c0.01,13.17,9.54,23.84,21.28,23.83
  	l685.28-0.45c11.74-0.02,21.25-10.71,21.23-23.88L727.8,35.02l-0.01-11.19C727.78,10.65,718.25-0.02,706.51,0z M723.56,464.46
  	c0.01,13.17-9.49,23.87-21.23,23.88l-472.38,0.34c-11.74,0.02-21.27-10.65-21.28-23.83l-0.01-429.85l-0.01-4.85
  	c-0.01-13.55,9.76-24.55,21.84-24.57l471.77-0.34c11.74-0.02,21.27,10.65,21.28,23.83l0.01,5.9L723.56,464.46z" fill="#bdc91a" />


    <defs>
      <clipPath id="theClipPath2">
          <rect class="rect" x="10" y="40" width="700" height="430" fill="red" />
      </clipPath>
    </defs>

  <g clip-path="url(#theClipPath2)">
    <image class="imageee iimmgg" href="https://cdn.shopify.com/s/files/1/0537/2038/3657/files/11954_screenshot.png?v=1618237836" x="270" y="70" width="401" height="365" />
    <text class="textdecor textheader hhddrr"  x="25" y="100">DINNER</text>
    <text class="textdecor textheader hhddrr"  x="25" y="130">WITH</text>
    <text class="textdecor textheader hhddrr"  x="25" y="160">FRIENDS</text>
  <text class="textdecor textcopy ttcc" x="17" y="200">
                          Import American
    <tspan x="17" y="220">loungewear  -  </tspan>
    <tspan x="17" y="240">built into the</tspan>
    <tspan x="17" y="260"> Shopify platform</tspan>
    <tspan x="17" y="280"> </tspan>
  </text>
 </g>

 <text class="textdecor mainname yy" x="25" y="45"> #2 </text>
 <text class="textdecor mainname yy hlll" x="230" y="45">DINNER WITH FRIENDS</text>

    <rect class="projDWF hotspot" x="0" y="0" width="720" height="70" fill="red" opacity="0"  />
</svg>
<!-- ///////////////////// ZABALA.DESIGN /////////////////////////  -->

<svg class="mainmmmdrop dropZD" id="mmmZD"  x=" 0" y="0" viewBox="0 0 730 500" width="1000" height="685">

<image href="https://cdn.shopify.com/s/files/1/0537/2038/3657/files/LABL_HL_top.png?v=1618796419" x=" 0" y="0" width="729" height="71" />
<image class="lowglow" href="https://cdn.shopify.com/s/files/1/0537/2038/3657/files/LABL_HL_bottom.png?v=1618796418" x=" 0" y="0" width="729" height="71" />



  <path class="start" d="M706.51,0L21.84,0.45C9.76,0.46-0.01,11.46,0,25.01l0.01,10L0.02,46.2c0.01,13.17,9.54,23.84,21.28,23.83
 l685.28-0.45c11.74-0.02,21.25-10.71,21.23-23.88l-0.01-10.68l-0.01-11.19C727.78,10.65,718.25-0.02,706.51,0z M723.56,40.46
 c0.01,13.17-9.49,23.87-21.23,23.88l-472.38,0.34c-11.74,0.02-21.27-10.65-21.28-23.83l-0.01-5.9l-0.01-4.81
 c-0.01-13.55,9.76-24.55,21.84-24.57l471.77-0.34c11.74-0.02,21.27,10.65,21.28,23.83l0.01,5.94L723.56,40.46z" fill="#bdc91a" />

  <path class="end" d="M706.51,0L21.84,0.45C9.76,0.46-0.01,11.46,0,25.01l0.01,10L0.02,470.2c0.01,13.17,9.54,23.84,21.28,23.83
  	l685.28-0.45c11.74-0.02,21.25-10.71,21.23-23.88L727.8,35.02l-0.01-11.19C727.78,10.65,718.25-0.02,706.51,0z M723.56,464.46
  	c0.01,13.17-9.49,23.87-21.23,23.88l-472.38,0.34c-11.74,0.02-21.27-10.65-21.28-23.83l-0.01-429.85l-0.01-4.85
  	c-0.01-13.55,9.76-24.55,21.84-24.57l471.77-0.34c11.74-0.02,21.27,10.65,21.28,23.83l0.01,5.9L723.56,464.46z" fill="#bdc91a" />


    <defs>
      <clipPath id="theClipPath3">
          <rect class="rect" x="10" y="34" width="713.5" height="430" fill="red"></rect>
      </clipPath>
    </defs>

  <g clip-path="url(#theClipPath3)">

    <rect x="208.6" y="0" width="520" height="500" rx="15"  fill="#E0804D" ></rect>

    <image class="imageee iimmgg" href="https://cdn.shopify.com/s/files/1/0537/2038/3657/files/11954_screenshot.png?v=1618237836" x="230" y="10" width="480" height="480" />

    <text class="textdecor textheader hhddrr"  x="25" y="100">DINNER</text>
    <text class="textdecor textheader hhddrr"  x="25" y="130">WITH</text>
    <text class="textdecor textheader hhddrr"  x="25" y="160">FRIENDS</text>
  <text class="textdecor textcopy ttcc3" x="17" y="200">
                          Import American
    <tspan x="17" y="220">loungewear  -  </tspan>
    <tspan x="17" y="240">built into</tspan>
    <tspan x="17" y="260">the Shopify </tspan>
    <tspan x="17" y="280">platform </tspan>
  </text>
 </g>

 <text class="textdecor mainname yy" x="25" y="45"> #3 </text>
 <text class="textdecor mainname yy hlll" x="300" y="45">ZABALA.DESIGN</text>

    <rect  class="projZD hotspot" x="0" y="0" width="720" height="70" fill="red" opacity="0"  />
</svg>

 


              
            
!

CSS

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

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

  overflow-x: hidden;
 
}
.projects-page::-webkit-scrollbar {
  display: none;
}
 /* ---------------------- */
.projects-page{

  position: absolute;
  overflow-x: hidden;
  width: 100%;
  height: 100%;
}
 /* ---------------------- */
.toppress{
  position: fixed;
  width: 105px;
  height: 105px;
  top: 69px;
  left: 152px;
  border-radius: 100px;
  cursor: pointer;
  z-index: 2000;
  /*  border: 3px dotted red; */
}
.fixed{
  position: fixed;
  height: 500px;
  width: 200px;
}
.ok-button{
  height: 340px;
  width: 340px;
  position: fixed !important;
  left: 13px;
  top: -49px;
}
.line-margin{
  position: fixed;
  clip-path: inset(10px 20px 30px 0px);
  top: 100px;
  height: 800px;
  width: 100px;
  /*border: 1px red dotted; */
}
.ok-line{
  position: fixed;
  bottom: 529px;
  left:-20px;
}
.okokok{
  position: fixed;
  left: 39px;
  top: 34px;
}
#okText{
  font-size: 34px;
  pointer-events: none;
  cursor: pointer;
  fill: white;
  text-decoration: none;
  letter-spacing: 0.075em;
  text-shadow: 0px 3px 6px rgba(154, 50, 146, 0.41);
}
#ok-hl{
  height: 340px;
  width: 340px;
  position: fixed !important;

  left: 13px;
  top: -49px;
}
 /* ---------------------- */
.projmenudrop{
 position: absolute;
 width: 110vw;
 height: 100vh;
 /* overflow-y: scroll; */
}
.mainmmmdrop {
  /* position: absolute; */
  position: absolute;
  overflow: visible;
  opacity: 1;
  height: auto;
  left: 350px;
  max-width: 70vw;
}
.dropDWF{
  margin-bottom: 50px;
}
#mmm11954 {
    top: 100px;
}
#mmmDWF{
  top: 240px;
}
#mmmZD{
  top: 380px;
}
.end  {
  visibility: hidden;
}
.start {
   cursor: pointer;
}
.iimmgg{
   cursor: pointer;
 }
.textdecor{
  fill: white;
  text-decoration: none;
  letter-spacing: 0.075em;
  text-shadow: 0px 3px 6px rgba(154, 50, 146, 0.41);

}
.mainname{
    font-size: 28px;
}
.number1{
    font-size: 24px;
}
.textheader{
  font-size: 24px;
}
.textcopy{
  font-size: 12px;
}
.proj11954, .projDWF, .projZD{
  cursor: pointer;
}
.glowww {
  opacity: 0;
}

.blancmargin{
  position: absolute;
  height: 500px;
  width: 100%;
  top: 430px;
  /*border: 3px dotted red;*/



}
 /* -------------------------------- */


@media all and (max-height: 600px) {
   .ok-line{
      bottom: auto;
      top: -747px;
 }
}
@media all and (max-width: 1200px){

.mainmmmdrop {
    left: 100px;
    max-width: 80vw;
  }
  #mmm11954 {
       top: 220px;
       z-index: 1;
  }
  #mmmDWF{
   top: 350px;
    z-index: 2;
  }
  #mmmZD{
   top: 480px;
    z-index: 3;
  }
}
@media all and (max-width: 1000px){
  .mainmmmdrop {
     max-width: 85vw;
  }

  #mmmDWF{
   top: 340px;
  }
  #mmmZD{
   top: 465px;
  }
}
@media all and (max-width: 860px){
  .ok-line{
    bottom: 375px;
  }
}
@media all and (max-width: 825px){
  .mainmmmdrop {
     left: 80px;
   }
}
@media all and (max-width: 780px){

  #mmmDWF{
   top: 320px;
  }
  #mmmZD{
   top: 430px;
  }
}

@media all and (max-width: 700px){

  .mainmmmdrop {
     left: 60px;
   }
}
@media all and (max-width: 670px){
  #mmmDWF{
   top: 300px;
  }
  #mmmZD{
   top: 380px;
  }
}
@media all and (max-width: 570px){
  #mmmDWF{
   top: 290px;
  }
  #mmmZD{
   top: 360px;
  }
  .mainmmmdrop {
    left: 60px;
   }
}
@media all and (max-width: 530px){
/*  body{
      overflow-y: scroll;
      overflow-y: visible;
      overflow-y: auto;
  } */

  .mainmmmdrop {
     width: 92vw;
     max-width: -webkit-fill-available;
     height: auto;
     left: 24px;
   }

   .ok-button{
     height: 300px;
     width: 300px;
     position: fixed !important;

     left: -7px;
     top: -49px;
   }
   .okokok {
       position: fixed;
       left: 16px;
       top: 24px;
       width: 300px;
   }
   .line-margin {

    -webkit-clip-path: inset(-9px 20px 30px 0px);
    clip-path: inset(-9px 20px 30px 0px);


  }
  .ok-line {
    left: -42px;
  }

  .toppress{
    position: fixed;
    width: 80px;
    height: 80px;
    top: 61px;
    left: 123px;
    border-radius: 100px;
  }

  .blancmargin{
    height: 280px;
    width: 100%;
    top: 430px;
  }

}



@media all and (max-width: 401px){

.ok-line {
    bottom: 315px;
}
}

              
            
!

JS

              
                
gsap.registerPlugin(MorphSVGPlugin);

let bars = gsap.utils.toArray(".mainmmmdrop");

bars.forEach((bar, i) => {
  let isOpen = false,
      s = gsap.utils.selector(bar),
      rect = s(".rect")[0],
      hotspot = s(".hotspot")[0],
      rectHeight = rect.getAttribute("height"),
      hotspotHeight = hotspot.getAttribute("height"),
      hotspotWidth = hotspot.getAttribute("width");
  gsap.set(rect, {attr:{height: 0}});

  bar.addEventListener("click", () => {
    isOpen = bar.isOpen = !isOpen;
    let offset = 0,
        tl = gsap.timeline({defaults: {ease: "power4.inOut", duration: 0.75 }})
          .to(s(".start"), { morphSVG: s(isOpen ? ".end" : ".start")})
          .to(rect, { attr: { height: isOpen ? rectHeight : 0 } }, 0)
          .to(hotspot, { attr: { height: isOpen ? 495 : hotspotHeight, width: isOpen ? 210 : hotspotWidth} }, 0)
          .to(s(".lowglow"), { yPercent: isOpen ? 600 : 0 }, 0)
         // .to(".blancmargin", { yPercent: isOpen ? 150 : 0}, 0)
          .to(s(".hlll"), { opacity: isOpen ? 0 : 1, duration: 0.25 }, 0);
    // now figure out how far to push each <svg> down. Skip the first one.
    bars.slice(1).forEach((curBar, i) => {
      if (bars[i].isOpen) {
        offset += 80;
      }
      tl.to(curBar, {yPercent: offset}, 0);
    });
  });
  
});

              
            
!
999px

Console