Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title>Dr. Strange Eye of Agamotto</title>
  <link rel="stylesheet" href="./style.css">
</head>
<body>
<div id="spell">
    <div class="center circle"></div>
    <div class="center square1"></div>
    <div class="center square3"></div>
    <div class="center square4"></div>
    <div class="center2 circle"></div>
    <div class="center3 circle"></div>
    <div class="center4 circle"></div>
</div>
<div id="eye">
    <div class="background top">
        <div class="filler top"></div>
    </div>
    <div class="background bottom">
        <div class="filler bottom"></div>
    </div>
    <div class="line middle"></div>
    <div class="line diag25"></div>
    <div class="line diag50"></div>
    <div class="line diag90"></div>
    <div class="line diag130"></div>
    <div class="line diag155"></div>
    <div class="circle left"></div>
    <div class="circle right"></div>
    <div class="center-back dark"></div>
    <div class="center-back light">
        <div class="center lev2"></div>
        <div class="center lev3"></div>
        <div class="inner-eye lev1"></div>
        <div class="inner-eye lev2"></div>
        <div class="inner-eye lev3"></div>
        <div class="globe-extern"></div>
        <div class="globe-intern">
            <div id="stone"></div>
            <div class="eyelid top"></div>
            <div class="eyelid bottom"></div>
        </div>
        <div class="mechanic m1"></div>
        <div class="mechanic m2"></div>
        <div class="mechanic m3"></div>
        <div class="mechanic m4"></div>
    </div>
</div>
</body>
</html>
              
            
!

CSS

              
                body{
  background-color: #212c69;
  overflow: hidden;
}
#eye{
  width: 60%;
  height: 300px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
#eye .background{
  width: 400px;
  height: 450px;
  background-color: transparent;
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
#eye .background .filler{
  width: 400px;
  height: 135px;
  position: absolute;
  background-color: #FACC36;
}
#eye .background .filler.top{
  top: 0;
}
#eye .background .filler.bottom{
  bottom: 0;
}
#eye .background.top{
  top: 180px;
}
#eye .background.bottom{
  bottom: 180px;
}
#eye .line{
  background-color: #2E2610;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
#eye .line.middle{
  height: 3px;
  width: 368px;
}
#eye .line.diag25, #eye .line.diag155{
  height: 3px;
  width: 318px;
}
#eye .line.diag50, #eye .line.diag130{
  height: 3px;
  width: 288px;
}
#eye .line.diag25{
  transform: rotate(25deg);
}
#eye .line.diag155{
  transform: rotate(155deg);
}
#eye .line.diag50{
  transform: rotate(50deg);
}
#eye .line.diag90{
  height: 3px;
  width: 272px;
  transform: rotate(90deg);
}
#eye .line.diag130{
  transform: rotate(130deg);
}
#eye .circle{
  width: 100px;
  height: 120px;
  border: 3px solid #2E2610;
  border-radius: 50%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
#eye .circle.left{
  right: 180px;
}
#eye .circle.right{
  left: 180px;
}
#eye .center-back.dark{
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background-color: black;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
@keyframes rotate{
  from{
    transform: rotate(0deg);
  }
  to{
    transform: rotate(-90deg);
  }
}
@keyframes inverse-rotate{
  from{
    transform: rotate(0deg);
  }
  to{
    transform: rotate(90deg);
  }
}
#eye .center-back.light{
  opacity: 1;
  width: 235px;
  height: 235px;
  border-radius: 50%;
  background-color: #2E2610;
  border: 8px solid #FACC36;
  background-size: 15px 18px;
  background-image: linear-gradient(to right, #54451b 2px, transparent 1px), linear-gradient(to bottom, #54451b 2px, transparent 1px);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  overflow: hidden;
  animation: rotate 3s ease-in-out forwards;
  animation-delay: 2s;
}
#eye .center-back.light .center{
  border-radius: 50%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
@keyframes inverse-rotate-center-lev2{
  from{
    transform: rotate(45deg);
  }
  to{
    transform: rotate(135deg);
  }
}
#eye .center-back.light .center.lev2{
  width: 180px;
  height: 180px;
  background-color: #2E2610;
  border: 3px solid #FACC36;
  background-size: 12px 15px;
  background-image: linear-gradient(to right, #54451b 2px, transparent 1px), linear-gradient(to bottom, #54451b 2px, transparent 1px);
  transform: rotate(45deg);
  animation: inverse-rotate-center-lev2 3s ease-in-out forwards;
  animation-delay: 2s;
}
#eye .center-back.light .center.lev3{
  width: 130px;
  height: 130px;
  background-color: #2E2610;
  border: 8px solid #ffe599;
  background-size: 8px 12px;
  background-image: linear-gradient(to right, #54451b 2px, transparent 1px), linear-gradient(to bottom, #54451b 2px, transparent 1px);
}
@keyframes inverse-rotate-inner-eye{
  from {
    transform: rotate(45deg);
  }
  to {
    transform: rotate(135deg);
  }
}
#eye .center-back.light .inner-eye{
  background-color: #FACC36;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  transform: rotate(45deg);
  animation: inverse-rotate-inner-eye 3s ease-in-out forwards;
  animation-delay: 2s;
}
#eye .center-back.light .inner-eye.lev1{
  width: 130px;
  height: 130px;
  border: 3px solid #2E2610;
  border-radius: 65% 10%;
}
#eye .center-back.light .inner-eye.lev2{
  width: 120px;
  height: 120px;
  border: 1px solid #2E2610;
  border-radius: 65% 10%;
}
#eye .center-back.light .inner-eye.lev3{
  width: 110px;
  height: 110px;
  border: 1px solid #2E2610;
  border-radius: 65% 10%;
}
#eye .center-back.light .globe-extern{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  opacity: 0.3;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background-color: #FACC36;
  border: 10px solid #2E2610;
}
#eye .center-back.light .globe-intern{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background-color: black;
  border: 2px solid #2E2610;
  overflow: hidden;
  animation: inverse-rotate 3s ease-in-out forwards;
  animation-delay: 2s;
}
@keyframes open{
  from{
    height: 36.5px;
  }
  to{
    height: 0px;
    border: none;
  }
}
#eye .center-back.light .globe-intern .eyelid{
  width: 75px;
  height: 36.5px;
  background-color: #FACC36;
  position: absolute;
  animation: open 1s ease-in-out forwards;
  animation-delay: 4s;
}
#eye .center-back.light .globe-intern .eyelid.top{
  top: 0;
  border-bottom: 1px solid #2E2610;
}
#eye .center-back.light .globe-intern .eyelid.bottom{
  bottom: 0;
  border-top: 1px solid #2E2610;
}
@keyframes glowing{
  from{
    box-shadow: 0 0 20px 10px #3fff59;
  }
  to{
    box-shadow: 0 0 20px 10px #20bf35;
  }
}
#eye .center-back.light .globe-intern #stone{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 0 20px 10px #3fff59;
  animation: glowing 1s ease-in-out alternate infinite;
}
#eye .center-back.light .mechanic{
  border: 12px solid white;
  border-radius: 50%;
  position: absolute;
}
#eye .center-back.light .mechanic.m1{
  width: 200px;
  height: 400px;
  left: -120px;
  top: -190px;
  transform: rotate(40deg);
}
#eye .center-back.light .mechanic.m2{
  width: 400px;
  height: 200px;
  right: -80px;
  bottom: -160px;
  transform: rotate(-20deg);
}
#eye .center-back.light .mechanic.m3{
  width: 300px;
  height: 300px;
  left: -250px;
  bottom: -170px;
  transform: rotate(-20deg);
}
#eye .center-back.light .mechanic.m4{
  width: 300px;
  height: 400px;
  right: -160px;
  top: -130px;
  transform: rotate(-60deg);
}

@keyframes appear{
  from {
    opacity: 0;
  }
  to{
    opacity: 0.3;
  }
}
#spell{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  opacity: 0;
  border: 1px solid white;
  box-shadow: 0 0 10px 1px #3fff59, 0 0 10px 1px #3fff59 inset;
  animation: appear 3s linear forwards;
  animation-delay: 5s;
}
@keyframes rotating{
  from {
    transform: rotate(-360deg);
  }
  to{
    transform: rotate(360deg);
  }
}
#spell .center{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 400px;
  height: 400px;
  border: 1px solid white;
  box-shadow: 0 0 10px 1px #3fff59, 0 0 10px 1px #3fff59 inset;
  animation: rotating 12s linear infinite;
}
#spell .center.circle{
  border-radius: 50%;
}
#spell .center.square1{
  animation-delay: 1.4s;
}
#spell .center.square3{
  animation-delay: 5.2s;
}
#spell .center.square4{
  animation-delay: 2.6s;
  animation-duration: 10s;
  animation-direction: reverse;
  width: 392px;
  height: 392px;
}
#spell .center2.circle{
  border-radius: 50%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 568px;
  height: 576px;
  border: 1px solid white;
  box-shadow: 0 0 10px 1px #3fff59, 0 0 10px 1px #3fff59 inset;
  animation: rotating 8s linear infinite;
}
#spell .center3.circle{
  border-radius: 50%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 600px;
  height: 608px;
  border: 1px solid white;
  box-shadow: 0 0 10px 1px #3fff59, 0 0 10px 1px #3fff59 inset;
  animation: rotating 8s linear infinite;
}
#spell .center4.circle{
  border-radius: 50%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 760px;
  height: 768px;
  border: 1px solid white;
  box-shadow: 0 0 10px 1px #3fff59, 0 0 10px 1px #3fff59 inset;
  animation: rotating 8s linear reverse infinite;
}
              
            
!

JS

              
                
              
            
!
999px

Console