cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              .container
  .base
  .telescope
    .eye
    .scope.uno
    .scope.dos
    .scope.tres
    .scope.cuatro
            
          
!
            
              body {
  background: #C2E7ED;
}

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  &:after {
    display: block;
    content: '';
    position: absolute;
    top: 210px;
    left: 40px;
    width: 95%;
    height: 20px;
    background: rgba(31,49,73,.5);
    border-top-left-radius: 20px;
    border-top-right-radius: 100%;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 100%;
    z-index: -1;
    animation: 5s shift infinite;
  }
}

.telescope {
  display: flex;
  align-items: center;
  transform-origin: 50% 50%;
  animation: look 5s infinite;
}

.eye {
  display: flex;
  align-items: center;
  position: relative;
  right: -20px;
  width: 37px;
  height: 70px;
  background: linear-gradient(to bottom, #c67385 0%,#403a50 100%);
  border-top-left-radius: 150px;
  border-bottom-left-radius: 150px;
  &:before {
    display: block;
    content: '';
    position: relative;
    right: -5px;
    width: 80%;
    height: 80%;
    background: linear-gradient(to bottom, rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 50%); 
    border-top-left-radius: 150px;
    border-bottom-left-radius: 150px;
  }
  &:after {
    display: block;
    content: '';
    position: relative;
    right: 15px;
    width: 5px;
    height: 80%;
    background: #6C4A68;
  }
}

.scope {
  display: flex;
  align-items: center;
  position: relative;
  width: 70px;
  background: linear-gradient(to bottom, #f5f9ea 0%,#e3f4fc 40%,#b6b9c8 64%,#d2c7cd 79%,#faf4f4 100%);
  &:after {
    display: block;
    content: '';
    position: absolute;
    right: 0;
    width: 20px;
    height: 105%;
    background: linear-gradient(to bottom, #aa4434 0%,#e3c3a9 7%,#faf8f1 20%,#cb9280 44%,#351a16 71%,#c57b59 82%,#a84737 100%);
    border-radius: 2px;
    border-left: 2px solid rgba(255,255,255,.3);
    border-right: 2px solid rgba(255,255,255,.3);
  }
}

.uno {
  height: 70px;
  &:before {
    display: block;
    content: '';
    position: absolute;
    left: 0;
    width: 8px;
    height: 105%;
    background: linear-gradient(to bottom, #aa4434 0%,#e3c3a9 7%,#faf8f1 20%,#cb9280 44%,#351a16 71%,#c57b59 82%,#a84737 100%);
    border-radius: 2px;
    border-left: 1px solid rgba(255,255,255,.3);
    border-right: 1px solid rgba(255,255,255,.3);
  }
}

.dos {
  height: 60px;
  &:before {
    display: block;
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 60px 0 0 10px;
    border-color: transparent transparent transparent rgba(31,49,73,.2);
  }
}

.tres {
  height: 50px;
  &:before {
    display: block;
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 50px 0 0 10px;
    border-color: transparent transparent transparent rgba(31,49,73,.2);
  }
}

.cuatro {
  height: 40px;
  &:before {
    display: block;
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 40px 0 0 10px;
    border-color: transparent transparent transparent rgba(31,49,73,.2);
  }
  &:after {
    width: 10px;
    border-right: 8px solid rgba(255,255,255,.3);
  }
}

.base {
  position: absolute;
  top: 35px;
  left: 50%;
  width: 30px;
  height: 30px;
  background: linear-gradient(to bottom, #aa4434 0%,#e3c3a9 7%, 20%,#cb9280 44%,#c57b59 82%,#a84737 100%);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 100%;
  transform-style: preserve-3d;
  &:before, &:after {
    display: block;
    content: '';
    position: absolute;
    left: calc(50% - 5px);
    width: 10px;
    height: 200px;
    background: linear-gradient(to right, #f5f9ea 0%,#e3f4fc 20%,#b6b9c8 64%,#d2c7cd 89%,#faf4f4 100%);
    border-radius: 3px;
    transform-origin: 50% 0;
  }
  &:before {
    transform: rotate(20deg) translateZ(-1em);
  }
  &:after {
    transform: rotate(-20deg) translateZ(-1em);
  }
}

@keyframes look {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes shift {
  0% {
    left: 40px;
  }
  25% {
    left: 50px;
  }
  75% {
    left: 30px;
  }
  100% {
    left: 40px;
  }
}
            
          
!
999px
Loading ..................

Console