123

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.

            
              .sink
  .pedastal
  .front
    .reflection
  .backleft
  .backright
  .topback
  .water
    .spread
  .spoutbase
  .spout
    .nozzle
  .faucetbase
  .hotfaucet
  .faucetbase.two
  .coldfaucet
    .fix
  .waterflowing
    .bubble1
    .bubble2
    .bubble3


            
          
!
            
              $background: #C59DB8
$border: 4px solid #1D1F20
$water: #99BADD
$lighter: #ccc
$darker: lighten(#808080, 17%)
$water-ripple: lighten(#99BADD, 8%)

@mixin bubbles
  height: 15px
  width: 15px
  background: white
  border-radius: 100%
  z-index: 20

body
  height: 100vh
  width: 100vw
  background: $background
  overflow: hidden

.sink
  position: absolute
  top: 50%
  left: 38%
  transform: translate(-40%, -40%)

.pedastal
  position: absolute
  height: 50px
  width: 70px
  background: $darker
  border: $border
  top: 40px
  left: 69px
  z-index: 2
  &:after
    content: ''
    position: absolute
    background: lighten(#808080, 10%)
    height: 50px
    width: 28px
  
.front
  position: absolute
  height: 41px
  width: 210px
  background: $lighter
  border: $border
  border-radius: 5px
  z-index: 8
  
  .reflection
    position: relative
    background: white
    height: 8px
    width: 85px
    top: 15px
    left: 60px
    &:before
      content: ''
      position: absolute
      background: #343436
      height: 8px
      width: 22px
      left: 90px
      opacity: .7
    &:after
      content: ''
      position: absolute
      background: #343436
      height: 8px
      width: 22px
      right: 90px
      opacity: .7

.backleft
  position: absolute
  height: 90px
  width: 10px
  background: $darker
  border: $border
  top: -90px
  left: 9px
  transform: rotate(11deg) translateZ(0)
  z-index: 3

.topback
  position: absolute
  width: 177px
  height: 10px
  background: $darker
  border: $border
  top: -91px
  left: 16px
  z-index: 4
  border-top-left-radius: 4px
  border-top-right-radius: 4px
  &:after
    content: ''
    position: absolute
    display: block
    height: 10px
    width: 10px
    background: $darker
    top: 9px
    left: -1px
    transform: rotate(10deg)

.backright
  position: absolute
  height: 90px
  width: 10px
  background: $darker
  border: $border
  top: -78px
  left: 192px
  transform: rotate(-10deg)
  z-index: 7
  &:after
    content: ''
    position: absolute
    display: block
    background: $darker
    height: 10px
    width: 10px
    top: -5px

.water
  overflow: hidden
  position: absolute
  height: 125px
  width: 175px
  background: $water
  top: -90px
  left: 20px
  &:after
    content: ''
    height: 200px
    width: 200px
    position: absolute
    background: darken($water, 2%)
    border-radius: 100%
    z-index: 2
    top: -50px
    right: 20px

.spoutbase
  position: absolute
  height: 4px
  width: 120px
  background: $darker
  top: -99px
  border: $border
  left: 45px
  z-index: 5
  
.spout
  position: absolute
  background: $darker
  border: $border
  height: 55px
  width: 12px
  top: -158px
  left: 100px
  border-top-right-radius: 50%
  z-index: 13
  &:after
    content: ''
    position: absolute
    background: $darker
    height: 12px
    width: 20px
    right: 12px
    top: -4px
    border: $border
  &:before
    content: ''
    position: absolute
    background: $darker
    height: 12px
    width: 20px
    right: 5px
    top: -4px
    z-index: 3
    top: 0px

.nozzle
  position: absolute
  height: 5px
  width: 13px
  background: $lighter
  top: 16px
  right: 21px
  z-index: 10
  

.hotfaucet
  position: absolute
  background: $darker
  border: $border
  height: 8px
  width: 22px
  top: -118px
  left: 150px
  border-top-right-radius: 40%
  border-bottom-right-radius: 40%
  overflow: hidden
  &:before
    content: ''
    position: absolute
    background: #ED4337
    height: 12px
    width: 3px
    left: 13px
    top: 0px
    overflow: hidden
  &:after
    content: ''
    position: absolute
    height: 12px
    width: 8px
    background: $darker 
 
.faucetbase
  position: absolute
  height: 20px
  width: 8px
  background: $darker 
  top: -118px
  left: 137px
  border: $border
  border-top-left-radius: 30%
  &:after
    content: ''
    position: absolute
    background: $darker
    height: 8px
    width: 7px
    left: 6px
    z-index: 10

.two
  left: 62px
  transform: rotateY(180deg)
  z-index: 1
  
.coldfaucet
  position: absolute
  background: $darker
  border: $border
  height: 8px
  width: 22px
  top: -118px
  left: 35px
  border-top-right-radius: 40%
  border-bottom-right-radius: 40%
  overflow: hidden
  transform: rotateY(180deg)
  &:before
    position: absolute
    content: ''
    background: blue
    height: 12px
    width: 4px
    left: 10px

.waterflowing
  position: absolute
  background: $water
  border: 1px solid white
  height: 68px
  width: 7px
  z-index: 9
  top: -138px
  left: 84px
  &:after
    content: ''
    position: absolute
    background: $water
    height: 10px
    width: 10px
    background: $water
    top: 60px
    left: -2px
  
.bubble1
  +bubbles
  position: absolute
  top: 56px
  left: 5px
  animation: puff 1.4s linear infinite
  animation-delay: .3s
  @keyframes puff
    50%
    transform: scale(.5)

.bubble2
  +bubbles
  position: absolute
  height: 4px
  width: 4px
  top: 67px
  left: 3px
  animation: puff2 1.5s linear infinite
  animation-delay: .3s
  @keyframes puff2
    50%
      transform: scale(5)
 
  
.bubble3
  +bubbles
  position: absolute
  top: 56px
  left: -12px
  animation: puff 1.4s linear infinite
  @keyframes puff
    50%
      transform: scale(.5)

.spread
  position: absolute
  height: 20px
  width: 20px
  background: transparent
  top: 4px
  left: 55px
  border: 1px solid $water-ripple
  border-radius: 100%
  animation: pulse .7s ease-out infinite
  z-index: 3
  @keyframes pulse
    100%
      left: 15px
      top: -70px
      height: 100px
      width: 100px
  
            
          
!
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