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.

            
              .container
  .camera-top
    .view-outter
      .view-inner
        .view-shine
    .large-black-button
    .small-black-button
    .white-button
    .red-button
    .flash-background
      .flash
    .lens
      .lens-shade
      .lens-center
    .orange-button
      .slider
  .camera-mid
  .camera-bottom
    .picture-out
    .camera-bottom-edge
            
          
!
            
              .container {
  position: absolute;
  height: 0px;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  box-shadow: 0px 30px 50px -20px rgba(0,0,0,.7);
}
.camera-top, .camera-mid, .camera-bottom {
  width: 400px;
}
.camera-top {
  box-shadow: 0px 20px 30px grey;
  left: 20px;
  height: 250px;
  background: linear-gradient(to right, 
    rgba(226,226,226,1) 0%,
    rgba(245,245,245,1) 10%,
    rgba(245,245,245,1) 90%,
    rgba(226,226,226,1) 100%);
  position: relative;
  border: 5px solid #f9f9f9;
  border-radius: 25px;
  &:before {
    left: -3px;
  }
  &:after {
    right: -3px;
  }
    .view-outter {
    position: absolute;
    top: 6px;
    left: 296px;
    width: 90px;
    height: 90px;
    border-radius: 20px;
    border: 2px solid #595959;
    background: radial-gradient(
     rgba(130,129,129,1) 0%,      rgba(64,62,63,1) 20%,        rgb(17, 17, 17) 30%,
     rgb(22, 22, 22) 34%,
      rgb(17, 17, 17) 38%,
     rgb(22, 22, 22) 42%,
      rgb(17, 17, 17) 46%,
     rgb(22, 22, 22) 50%,
      rgb(17, 17, 17) 54%,
     rgb(22, 22, 22) 58%,
      rgb(17, 17, 17) 62%,
     rgb(22, 22, 22) 66%,
      rgb(17, 17, 17) 70%,
     rgb(32, 32, 32) 100%,
    );
    
      .view-inner {
      position: absolute;
      width: 45px;
      height: 45px;
      top: 20px;
      left: 22px;
      background: linear-gradient(
  rgb(226, 226, 226)
30%,
  rgb(140, 140, 140) 50%, 
  rgb(226, 226, 226)
100%);
      border-radius: 10px;
      border: 2px solid rgb(17, 17, 17);
      .view-shine {
      position: absolute;
      width: 75px;
      height: 75px;
      top: -17px;
      left: -18px;
      border-radius: 30%;
      background: linear-gradient(to right,     
  transparent 10%,
  rgba(255, 255, 255, 0.5) 50%,
  transparent 90%);
      }
    }
  }
  
    .orange-button {
    position: absolute;
    left: 328px;
    top: 110px;
    width: 35px;
    height: 15px;
    background: linear-gradient(#ffaf30 10%, #d18d21 50%, #ffaf30 90%);
    border-radius: 10px;
    
      .slider {
      position: absolute;
      width: 15px;
      height: 15px;
      left: 10px;
      border-radius: 10px;
      background: #ffc160;
      box-shadow: 1px 2px 5px grey;
    }
  }

  .lens {
    position: absolute;
    top: 10px;
    left: 125px;
    width: 160px;
    height: 160px;
    background: radial-gradient(ellipse at center, 
      rgb(63, 37, 37) 25%,
      rgb(124,124,124) 26%,       rgb(28, 28, 28) 33%,
      rgb(124,124,124) 37%,
      rgb(28, 28, 28) 41%,
      rgb(124,124,124) 44%,
      rgb(28, 28, 28) 46%,
      rgb(124,124,124) 48%,
      rgb(28, 28, 28) 50%,
      rgb(124,124,124) 52%,
      rgb(28, 28, 28) 54%,
      rgb(124,124,124) 56%,
      rgb(28, 28, 28) 58%,
      rgb(124,124,124) 60%,
      rgb(28, 28, 28) 65%,
      rgb(124,124,124) 67%,
      rgb(15, 15, 15) 68%);
    border: 3px solid #2d2d2d;
    border-radius: 100%;
    box-sizing: border-box;
    box-shadow: 0px 20px 20px rgba(0, 0, 0, 0.5);
    &:before {
      display: block;
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 50px;
      height: 50px;
      background: linear-gradient(rgb(79,155,104) 15%,
        rgb(182, 186, 76) 30%,
        transparent 35%,
        transparent 70%,
        rgb(79,155,104) 100%
      );
      border-radius: 100%;
    }
    
  .lens-shade {
    background: linear-gradient(to right, transparent 10%, rgba(0, 0, 0, 0.8) 40%, transparent 90%);
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 100%;
    top: -3px;
    left: -3px;
    transform: rotate(20deg);
  }
}

.large-black-button {
  position: absolute;
  top: 148px;
  left: 263px;
  height: 30px;
  width: 30px;
  background: black;
  border-radius: 100%;
  border: 3px solid rgb(61, 61, 61);
  box-shadow: -6px -6px 15px grey;
}

.small-black-button {
  position: absolute;
  top: 75px;
  left: 92px;
  height: 25px;
  width: 25px;
  background: black;
  border-radius: 100%;
  box-shadow: inset 0 3px 15px -2px #FFF;
}

.white-button {
  position: absolute;
  top: 30px;
  left: 90px;
  height: 30px;
  width: 30px;
  background: radial-gradient(ellipse at center, 
      rgba(245,245,245,1) 25%, rgba(245,245,245,1) 25%,
    rgb(117, 117, 117) 30%,
    rgba(245,245,245,1) 30%,
    rgba(245,245,245,1) 50%,
    rgb(117, 117, 117) 100%
);
  border-radius: 100%;
}

.red-button {
  position: absolute;
  top: 170px;
  left: 30px;
  height: 45px;
  width: 45px;
  background: radial-gradient(ellipse at center, 
      rgb(219, 13, 13) 58%,
      rgb(79, 3, 3) 100%);
  border-radius: 100%;
  border: 5px solid rgba(245,245,245,1);
  box-shadow: -8px 5px 10px grey;
}

  .flash-background {
      position: absolute;
      background: black;
      height: 130px;
      width: 60px;
      left: 15px;
      top: 10px;
      border-radius: 5%;
      background: linear-gradient(
        rgb(89, 89, 89) 5%,
        rgb(242, 242, 242) 6%,
        rgb(89, 89, 89) 8%,
        rgb(242, 242, 242) 10%,
        rgb(89, 89, 89) 11%,
        rgb(242, 242, 242) 13%,
        rgb(89, 89, 89) 15%,
        rgb(242, 242, 242) 16%,
        rgb(89, 89, 89) 18%,
        rgb(242, 242, 242) 19%,
        rgb(89, 89, 89) 20%,
        rgb(242, 242, 242) 21%,
        rgb(89, 89, 89) 23%,
        rgb(242, 242, 242) 24%,
        rgb(89, 89, 89) 25%,
        rgb(242, 242, 242) 27%,
        rgb(89, 89, 89) 28%,
        rgb(242, 242, 242) 30%,
        rgb(89, 89, 89) 31%,
        rgb(242, 242, 242) 32%,
        rgb(89, 89, 89) 34%,
        rgb(242, 242, 242) 36%,
        rgb(89, 89, 89) 37%,
        rgb(242, 242, 242) 39%,
        rgb(89, 89, 89) 40%,
        rgb(242, 242, 242) 41%,
        rgb(89, 89, 89) 42%,
        rgb(242, 242, 242) 44%,
        rgb(89, 89, 89) 46%,
        rgb(242, 242, 242) 47%,
        rgb(89, 89, 89) 48%,
        rgb(242, 242, 242) 50%,
        rgb(89, 89, 89) 55%,
        rgb(242, 242, 242) 60%,
        rgb(89, 89, 89) 63%,
        rgb(242, 242, 242) 64%,
        rgb(89, 89, 89) 65%,
        rgb(242, 242, 242) 66%,
        rgb(89, 89, 89) 68%,
        rgb(242, 242, 242) 70%,
        rgb(89, 89, 89) 71%,
        rgb(242, 242, 242) 72%,
        rgb(89, 89, 89) 74%,
        rgb(242, 242, 242) 75%,
        rgb(89, 89, 89) 77%,
        rgb(242, 242, 242) 78%,
        rgb(89, 89, 89) 80%,
        rgb(242, 242, 242) 82%,
        rgb(89, 89, 89) 84%,
        rgb(242, 242, 242) 86%,
        rgb(89, 89, 89) 87%,
        rgb(242, 242, 242) 89%,
        rgb(89, 89, 89) 90%,
        rgb(242, 242, 242) 91%,
        rgb(89, 89, 89) 93%,
        rgb(242, 242, 242) 94%,
        rgb(89, 89, 89) 95%,
        rgb(242, 242, 242) 97%,
        rgb(89, 89, 89) 98%,
        rgb(242, 242, 242) 99%,
        rgb(89, 89, 89) 100%);
  
  .flash {
    position: absolute;
    height: 130px;
    width: 60px;
    background: linear-gradient(to right, 
      transparent 20%,
      transparent 20%,
      rgba(247, 247, 247, 1) 20%,
      transparent 25%,
      transparent 25%,
      rgba(247, 247, 247, 0.5) 27%,
      transparent 28%,
      transparent 28%,
      rgba(247, 247, 247, 0.5) 30%,
      transparent 32%,
      transparent 32%,
      rgba(247, 247, 247, 0.5) 34%,
      transparent 35%,
      transparent 35%,
      rgba(247, 247, 247, 0.5) 37%,
      transparent 39%,
      transparent 39%,
      rgba(247, 247, 247, 0.5) 42%,
      transparent 44%,
      transparent 44%,
      rgba(247, 247, 247, 0.5) 46%,
      transparent 48%,
      transparent 48%,
      rgba(247, 247, 247, 0.5) 50%,
      transparent 52%,
      transparent 52%,
      rgba(247, 247, 247, 0.5) 54%,
      transparent 56%,
      transparent 56%,
      rgba(247, 247, 247, 0.5) 60%,
      transparent 62%,
      transparent 62%,
      rgba(247, 247, 247, 0.5) 64%,
      transparent 66%,
      transparent 66%,
      rgba(247, 247, 247, 0.5) 68%,
      transparent 70%,
      transparent 70%,
      rgba(247, 247, 247, 0.5) 72%,
      transparent 74%,
      transparent 74%,
      rgba(247, 247, 247, 1) 75%,
      transparent 80%,
      transparent 80%,
      transparent 100%);
    left: -3px;
    top: -3px;
    border-radius: 10%;
    border: 3px solid rgb(48, 48, 48);
  }
  }   
}
.camera-top:before, .camera-top:after {
  content: "";
  position: absolute;
  background-image: -webkit-gradient(
    linear, 0 0, 0 100%, 
    from(#f9f9f9), to(#e2e2e2));
  top: 10px;
  bottom: 10px;
  width: 5px;
}
.camera-mid {
  position: absolute;
  width: 420px;
  height: 20px;
  background: rgba(226,226,226,1);
  left: 15px;
  top: 239px;
  border-top-left-radius: 15%;
  border-top-right-radius: 15%;
  box-shadow: 0px 20px 30px grey;
}
.camera-bottom {
  box-shadow: 0px 20px 30px grey;
  position: absolute;
  width: 420px;
  height: 80px;
  background: linear-gradient(to right, 
    rgb(104, 104, 104) 0%,
    rgb(35, 35, 35) 5%,
    rgb(35, 35, 35) 95%,
    rgb(104, 104, 104) 100%);
  left: 15px;
  top: 255px;
  border-bottom-left-radius: 10%;
  border-bottom-right-radius: 10%;
  .picture-out {
    position: absolute;
    top: 17px;
    left: 35px;
    width: 350px;
    height: 30px;
    background: linear-gradient( 
      rgb(35, 35, 35) 0%,
      rgb(35, 35, 35) 10%,
      rgb(104, 104, 104) 30%,
      rgb(35, 35, 35) 50%,
      rgb(35, 35, 35) 100%);
    border: 2px solid rgb(104, 104, 104);
  }
  
  .camera-bottom-edge {
    position: absolute;
    width: 420px;
    height: 20px;
    background: linear-gradient( 
      rgb(104, 104, 104) 5%,
      rgb(35, 35, 35) 50%,
      rgb(35, 35, 35) 100%);
    left: 0px;
    top: 73px;
    border-bottom-left-radius: 100%;
    border-bottom-right-radius: 100%;
  }
}
            
          
!
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