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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <div class="blocks">
  <input id="left-top" type="checkbox" name="left-top"/>
  <label for="left-top" class="trigger left top"></label>
  <div class="block left top">
    <h1>ETH</h1>
    <div class="content"> 
      <h2>Ethereum</h2>
      <p><iframe style = "width:100vw;height:100vh;padding: 10px;border-style:none;display:inline-block;"  src="https://abweb.s3.us-west-1.amazonaws.com/0710/index-BTC-1symbol-0323-mobdesklayout-works-v7-heat-minimal2.html"></iframe></p> 
    </div> 
  </div> 
  <input id="right-top" type="checkbox" name="right-top"/>
  <label for="right-top" class="trigger right top"></label>
  <div class="block right top">
    <h1>GOOGL</h1>
    <div class="content"> 
      <h2>Alphabet Inc.</h2>
      <p>LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH </p>
     
    </div>
  </div>
  <input id="left-bot" type="checkbox" name="left-bot"/>
  <label for="left-bot" class="trigger left bot"></label>
  <div class="block left bot">
    <h1>MSFT</h1>
    <div class="content">
      <h2>Microsoft Corporation</h2>
      <p>LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH </p>
     
    </div>
  </div>
  <input id="right-bot" type="checkbox" name="right-bot"/>
  <label for="right-bot" class="trigger right bot"></label>
  <div class="block right bot">
      <h1>AMZN</h1>
    <div class="content">
      <h2>Amazon Inc.</h2>
      <p>LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH LOREM IPSUM AND YOU KNOW THE REST BLAH BLAH BLAH </p>
     
    </div>
  </div>
</div>
              
            
!

CSS

              
                @import "compass/css3";

*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:"Roboto", sans-serif;
}
/* Scrollbar */ 

::-webkit-scrollbar{width: 5px;}

::-webkit-scrollbar-thumb{background-color:rgb(196, 196, 196); border-radius: 0;}
::-webkit-scrollbar-thumb:hover{background-color:rgb(196, 196, 196);}

::-webkit-scrollbar-track{background-color:rgb(237, 237, 237);}


/* End Scrollbar */



a {
  color: inherit;
  text-decoration: none;
}
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
input[type=checkbox] {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* SASS BASE CLASSES */
.absPos {
  position: absolute; 
  width: 50%;
  height: 50%;
  
  &.top {
    top: 0;
  }
  &.right {
    left: 50%;
  }
  &.bot {
    top: 50%;
  }
  &.left {
    left: 0;
  }
}
.labelClose {
  left: auto;
  bottom: auto;
  right: 0;
  top: 5px;
  width: 30px;
  height: 30px;
  z-index: 101;
  animation: hideAndShow 1s;
  
  &:before {
    content: "+";
    display: block;
    position: absolute;
    top: 5px;
    right: 43px;
    font-size: 50px;
    line-height: 30px;
    font-weight: bold;
    color: #fff;
    transform: rotate(45deg);
    transition: 0.5s;
  }
  
  &:hover:before {
    transform: rotate(225deg);
    color: tomato;
  }
}
.activeBlock {
  transform: translateZ(0) scale(2.005);
  z-index: 100;
  overflow-x: hidden;
  overflow-y: auto;

  h1 {
    opacity: 0;
    z-index: 5;
  }
  .content {
    opacity: 1;
    z-index: 150;
  }
}
/* END OF SASS BASE CLASSES */

.blocks {
  width: 100%;
  height: 100%;
  position: relative;
  text-align: center;
  background:black;
  .trigger {
    @extend .absPos;
    z-index: 30;
    //transition: 0.5s;
    cursor: pointer;
    
   
    &:hover + .block h1 {
      color: #EEEEEE;
    }
  }

  .block {
    @extend .absPos;
    font-size: 14px;
    transition: 0.5s;
    will-change: transform;
    //transform-style: preserve-3d;
    z-index: 5;
    background-size: cover;
    
    &.left.top {
      //background: #f5bfb8;
      transform-origin: 0% 0%;
      background-color: #63d471;
background-image: linear-gradient(315deg, lime 0%, blue
 100%);
      //background:linear-gradient(#1f1f21, #000); //#F44336;
   
    }
    &.right.top {
      //background: #c8f4f2;
      transform-origin: 100% 0%;
      // background:#2196F3;
      background-color: #f9484a;
      background-image: linear-gradient(315deg, #f9484a 0%, #fbd72b 74%);
    }
    &.left.bot {
      //background: #c8f4c8;
      transform-origin: 0% 100%;
      //background:#8BC34A;
      background-color: #726cf8;
background-image: linear-gradient(315deg, #726cf8 0%, #e975a8 74%);
    }
    &.right.bot {
      //background: #eef4c8;
      transform-origin: 100% 100%;
      //background:#FFEB3B;
      background-color: #90d5ec;
background-image: linear-gradient(315deg, #90d5ec 0%, #fc575e 74%);
    }
    
    h1 {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translateX(-50%) translateY(-50%);
      color: white;
      transition: 0.5s;
      will-change: opacity;
          font-size:2em;

    }
    
    .content {
      opacity: 0;
      z-index: 1;
      padding: 2em;
      text-align: left;
      transition: 0.5s;
      color: #fff;
      background-color: #212121;
      will-change: opacity;
        height: 100%;
      //transition-delay: 0.5s;
      
     
      p {
      font-size: 0.8em;
        margin: 0.5em 0;
      }
    }
  }
  
  #left-top:checked ~ .block.left.top {
    @extend .activeBlock;
  }
  #left-top:checked ~ .trigger.left.top {
    @extend .labelClose;
  }
  #right-top:checked ~ .block.right.top {
    @extend .activeBlock;
  }
  #right-top:checked ~ .trigger.right.top {
    @extend .labelClose;
  }
  #left-bot:checked ~ .block.left.bot {
    @extend .activeBlock;
  }
  #left-bot:checked ~ .trigger.left.bot {
    @extend .labelClose;
  }
  #right-bot:checked ~ .block.right.bot {
    @extend .activeBlock;
  }
  #right-bot:checked ~ .trigger.right.bot {
    @extend .labelClose;
  }
}
/* fix for position absolute label movement outside block */
@keyframes hideAndShow {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
    transform: scale(0.5);
  }
  90% {
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console