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

              
                <!-- /////////////////////////////////////////////////  -->
<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 id="lowglow1" 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 id="start1" 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 id="end1" 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="rect1" 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 hhddrr1"  x="25" y="100" >11954.UK</text>
  <text class="textdecor textcopy ttcc1" 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" 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 id="lowglow2" 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 id="start2" 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 id="end2" 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="rect2" x="10" y="40" width="700" height="430" fill="red" />
      </clipPath>
    </defs>

  <g clip-path="url(#theClipPath2)">
    <image class="imageee2 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 hhddrr2"  x="25" y="100">DINNER</text>
    <text class="textdecor textheader hhddrr2"  x="25" y="130">WITH</text>
    <text class="textdecor textheader hhddrr2"  x="25" y="160">FRIENDS</text>
  <text class="textdecor textcopy ttcc2" 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 yy2" x="25" y="45"> #2 </text>
 <text class="textdecor mainname yy2 hlll2" x="230" y="45">DINNER WITH FRIENDS</text>

    <rect  class="projDWF" 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;
 
}

.mainmmmdrop {
  position: absolute;
  float: right;
  right: 100px;
  overflow: visible;
  opacity: 1;
}

#mmm11954 {
    top: 100px;
}
#mmmDWF{
  top: 240px;

}
#end1, #end2  {
  visibility: hidden;
}
#start1, #start2 {
   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;
}

.textheader{
  font-size: 24px;
}
.textcopy{
  font-size: 12px;
}
.proj11954, .projDWF{
  cursor: pointer;
}
.glowww {
  opacity: 0;
}
.blancmargin{
  position: absolute;
  bottom: 0px;

  width: 100vw;
  height: 100px;
}

 /* -------------------------------- */

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

  .mainmmmdrop {
    right: 40px;


  }
}


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

  .mainmmmdrop {
    right: 20px;
      max-width: 72vw;
  }

  .ok-button{
    height: 160px;
    left: -90px;
  }
}


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

  .mainmmmdrop {
    max-width: 68vw;
  }

  .ok-button{
    height: 150px;
    left: -110px;
  }

  #mmm11954 {
      top: 50px;
  }
  #mmmDWF{
    top: 170px;
    z-index: 1;

  }
}

@media all and (max-width: 1000px){
  .ok-button{
    top: 30px;
    position: relative;
  }

  .mainmmmdrop {
    max-width: 83vw;
  }

  #mmm11954 {
      top: 260px;
  }
  #mmmDWF{
    top: 370px;
    z-index: 1;

  }
}
@media all and (max-width: 825px){
  .mainmmmdrop {
    max-width: 90vw;


width:1000;
 height:685:
   }
}
              
            
!

JS

              
                
gsap.registerPlugin(MorphSVGPlugin );

 
/////////////////  EXPAND 11954 ////////////////////

/////////////////  EXPAND 11954 ////////////////////

document.querySelector(".proj11954").addEventListener("click", exxxpand1)

//gsap.set("svg", { opacity: 1 });
const tl11954 = gsap.timeline({
  defaults: { ease: "power4.inOut", duration: 0.75 }});


  tl11954.to("#start1", { morphSVG: "#end1" },0)
    .from(".rect1", { attr: { height: 0 } }, 0)
    .to(".proj11954", { attr: { height: 495, width:210} }, 0)
    .to("#lowglow1", { yPercent:600 }, 0)
    .to("#greyBottom1",{ yPercent:600 },0)
    .to("#mmmDWF",{ yPercent:80 },0)
    .to(".blancmargin",{ yPercent:700 },0)
    .to(".hlll1",{ opacity:0, duration: 0.25  },0)
    .reversed(true);


    function exxxpand1() {
      tl11954.reversed(!tl11954.reversed());
    }




const tlgreyhover1 = gsap.timeline({ ease: 'none', paused:'true' });
 tlgreyhover1.to("#greyTop1",{duration: 0.75, opacity:"100%"} )
             .to("#greyBottom1",{duration: 0.75, opacity:"100%"},0)
             .to(".yy1", {duration: 0.2, textShadow: "0px 3px 6px rgba(46, 196, 233, 0.8"},0)


const hover11954 = document.querySelector('.proj11954');
      hover11954.addEventListener("mouseenter", () => {
        tlgreyhover1.play();
          });
      hover11954.addEventListener("mouseleave", () => {
          tlgreyhover1.timeScale(0.85).reverse();
          });

const tlpop1 = gsap.timeline({ ease: "power4.inOut", paused:'true' });
    tlpop1.to(".imageee1",{duration: 0.25, scale:1.03, transformOrigin:"50% 50%"})
          .to(".hhddrr1",{duration: 0.25, textShadow: "0px 3px 6px rgba(46, 196, 233, 0.8" },0)
          .to(".ttcc1",{duration: 0.25, textShadow: "0px 3px 6px rgba(46, 196, 233, 0.8" },0)


const popout11954 = document.querySelector('.imageee1');
      popout11954.addEventListener("mouseenter", () => {
        tlpop1.play();
          });
      popout11954.addEventListener("mouseleave", () => {
          tlpop1.timeScale(0.85).reverse();
          });

/////////////////  EXPAND DWF ////////////////////

document.querySelector(".projDWF").addEventListener("click", exxxpand2)

//gsap.set("svg", { opacity: 1 });
const tlDWF = gsap.timeline({
  defaults: { ease: "power4.inOut", duration: 0.75 }});


  tlDWF.to("#start2", { morphSVG: "#end2" },0)
    .from(".rect2", { attr: { height: 0 } }, 0)
    .to(".projDWF", { attr: { height: 495, width:210} }, 0)
    .to("#lowglow2", { yPercent:600 }, 0)
    .to("#greyBottom2",{ yPercent:600 },0)
    .to(".blancmargin",{ yPercent:700 },0)
    .to(".hlll2",{ opacity:0, duration: 0.25  },0)
    .reversed(true);


    function exxxpand2() {
      tlDWF.reversed(!tlDWF.reversed());
    }




const tlgreyhover2 = gsap.timeline({ ease: 'none', paused:'true' });
 tlgreyhover2.to("#greyTop2",{duration: 0.75, opacity:"100%"} )
             .to("#greyBottom2",{duration: 0.75, opacity:"100%"},0)
             .to(".yy2", {duration: 0.2, textShadow: "0px 3px 6px rgba(46, 196, 233, 0.8"},0)


const hoverDWF = document.querySelector('.projDWF');
      hoverDWF.addEventListener("mouseenter", () => {
        tlgreyhover2.play();
          });
      hoverDWF.addEventListener("mouseleave", () => {
          tlgreyhover2.timeScale(0.85).reverse();
          });



const tlpop2 = gsap.timeline({ ease: "power4.inOut", paused:'true' });
    tlpop2.to(".imageee2",{duration: 0.25, scale:1.03, transformOrigin:"50% 50%"})
          .to(".hhddrr2",{duration: 0.25, textShadow: "0px 3px 6px rgba(46, 196, 233, 0.8" },0)
          .to(".ttcc2",{duration: 0.25, textShadow: "0px 3px 6px rgba(46, 196, 233, 0.8" },0)


const popoutDWF = document.querySelector('.imageee2');
      popoutDWF.addEventListener("mouseenter", () => {
        tlpop2.play();
          });
      popoutDWF.addEventListener("mouseleave", () => {
          tlpop2.timeScale(0.85).reverse();
          });




 
 const dropdwf = document.querySelector('.dropDWF');
const drop11954 = document.querySelector('.drop11954');
function resizeFunction1(x) {
  if (x.matches) {
    dropdwf.setAttribute("viewBox", "0 100 730 500");
    drop11954.setAttribute("viewBox", "0 100 730 500");
  } else {
    dropdwf.setAttribute("viewBox", "0 0 730 500");
    drop11954.setAttribute("viewBox", "0 0 730 500");
  }
}


var x = window.matchMedia("(max-width: 1150px)")
resizeFunction1(x)
x.addListener(resizeFunction1)
              
            
!
999px

Console