Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="container">
  <div class="top">
    <div class="wrapper">
      <div class="cap"></div>
    </div>
  </div>
  <div class="mid">
    <div class="wrapper">
    <div class="glass">
      <div class="blob"></div>
      <div class="blob"></div>
      <div class="blob"></div>
      <div class="blob"></div>
      <div class="blob"></div>
      <div class="goop top-goop"></div>
      <div class="goop bot-goop"></div>
    </div>
    </div>
  </div>
  <div class="upperBase">
    <div class="wrapper">
      <div class="base"></div>
    </div>
  </div>
  <div class="lowerBase">
    <div class="wrapper">
      <div class="base"></div>
    </div>
  </div>
</div>
            
          
!
            
              $lavacolor:aquamarine;
$lavablur:3px;
/*various blob speeds*/
$fast:9s;
$med:12s;
$slow:15s;
html {
  background:black;  
}
html, body {
  width:100%;
  height:100%;
  display:flex;
}
.container {
  margin:auto;
  transform:scale(1.5);
}
.top .wrapper {
  width:100px;
  height:100px;
  position:relative;
  margin-left:150px;
}
.upperBase .wrapper {
  width:143px;
  height:100px;
  position:relative;
  margin-left:128px;
  transform:rotateY(180deg);
  top:38px;
}
.lowerBase .wrapper {
  width:130px;
  height:50px;
  position:relative;
  margin-left:135px;
  transform:rotateY(180deg);
  top:17px;
}
@mixin trap {
  top:0;right:0;bottom:0;left:0;
  content:'';
  position:absolute;
}
.lowerBase .base {
  @include trap;
	background: linear-gradient(to right, #636363 0%,#969696 24%,#969696 24%,#adadad 50%,#5b5b5b 100%);
	transform: perspective(2px) rotateX(1deg);
}
.upperBase .base {
 @include trap;
	background:  linear-gradient(to right, #6c6c6c 0%,#a5a5a5 24%,#a5a5a5 24%,#bebebe 50%,#636363 100%);
	transform: perspective(65px) rotateX(-25deg);
}
.cap {
	@include trap;
	background: linear-gradient(to right, #9f9f9f 0%,#d8d8d8 24%,#d8d8d8 24%,#f1f1f1 50%,#969696 100%);
	transform: perspective(4px) rotateX(1deg);
}
.mid .wrapper {
  width:158px;
  height:200px;
  position:relative;
  left:121px;
  top:-12px;
  
}
.glass {
	@include trap;
	background: darken(hotpink,20%);
	transform: perspective(7px) rotateX(1deg);
  filter:contrast(18);
  overflow:hidden;
}

.goop {
  background:$lavacolor;
  width:100%;
  height:50px;
  position:absolute;
  border-radius:50%;
  filter:blur($lavablur);
}
.top-goop {
  top:-25px;
}
.bot-goop {
  bottom:-25px;
}
.blob {
  border-radius:50%;
  position:absolute;
  background:$lavacolor;
  filter:blur($lavablur);
}

@mixin blobanimator ($anim, $dur){
  animation: $anim $dur infinite ease-in;
}
.blob:nth-of-type(1) {
  height:80px;
  width:80px;
   @include blobanimator(from-bottom, $fast);
}
.blob:nth-of-type(2) {
  width:80px;
  height:80px;
  left:50px;
  @include blobanimator(from-bottom, $med);
  animation-delay:1s;
  bottom:-40px;
}
.blob:nth-of-type(3){
  height:70px;
  width:60px;
  right:30px;
   @include blobanimator(from-top, $slow);
  top:-80px;
}
.blob:nth-of-type(4){
  height:40px;
  width:40px;
  left:50px;
   @include blobanimator(from-top, $med);
  top:-80px;
  animation-delay:3s;
}
.blob:nth-of-type(5){
  height:90px;
  width:90px;
  left:-15px;
   @include blobanimator(from-bottom, $slow);
  bottom:-80px;
  animation-delay:3s;
}
@keyframes from-bottom {
  0% {
    bottom:-80px;
  }
  100% {
    bottom:200px;
  }
}
@keyframes from-top {
  0% {
    top:-80px;
  }
  100% {
    top:200px;
  }
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console