cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-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.

            
              html, body { height: 100%; }
body {
  margin: 0;
  display: flex;
  font-size: 1vmin;
  background: linear-gradient(to bottom right, dodgerblue 50%, darken(dodgerblue, 5%) 50%);
}

$marks: #999;

.clock {
  position: relative;
  margin:auto;
  height: 70em;
  width: 70em;
  border: 5em solid black;
  border-radius: 50%;
  background:
    radial-gradient(50% 50%, black 6%, rgba(black,0) 6%),
    radial-gradient(50% 50%, white 25em, rgba(white,0) 25em, rgba(white,0) 32em, white 32em),
    linear-gradient(90deg, rgba($marks,0) 48%, $marks 48%, $marks 52%, rgba($marks,0) 52%) center center,
    linear-gradient(0deg, rgba($marks,0) 48%, $marks 48%, $marks 52%, rgba($marks,0) 52%) center center,
    linear-gradient(60deg, rgba($marks,0) 48.5%, $marks 48.5%, $marks 51.5%, rgba($marks,0) 51.5%) center center,
    linear-gradient(30deg, rgba($marks,0) 48.5%, $marks 48.5%, $marks 51.5%, rgba($marks,0) 51.5%) center center,
    linear-gradient(150deg, rgba($marks,0) 48.5%, $marks 48.5%, $marks 51.5%, rgba($marks,0) 51.5%) center center,
    linear-gradient(120deg, rgba($marks,0) 48.5%, $marks 48.5%, $marks 51.5%, rgba($marks,0) 51.5%) center center,
    white
  ;
  box-shadow: inset 5em 3em rgba(black,0.1), 5em 3em rgba(black,0.1);
}

.clock::before,
.clock::after {
  content: '';
  display: block;
  position: absolute;
  transform-origin: 50% 100%;
}

.clock::before {
  width: 3em;
  height: 24em;
  background-color: black;
  bottom: 50%;
  left: calc(50% - 1.5em);
  transform: rotate(184deg);
  animation: rotate 12s linear infinite;
}

.clock::after {
  width: 2em;
  height: 31em;
  background-color: black;
  bottom: 50%;
  left: calc(50% - 1em);
  transform: rotate(50deg);
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console