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 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.

Quick-add: + add another resource

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.

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