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

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

              
                .clock-container
  span.triger LOG
  .clock
    .second
    .minute
    .hour
    ul.clock-numbers
      li XII
      li III
      li VI
      li IX
  form.login-form
    .form-group
      input.form-control(required="")
      label.form-label User Name
    .form-group
      input.form-control(type="password", required="")
      label.form-label Password
    button.btn IN
    
  ul.wheel-box
    li
    li
    li
    li
              
            
!

CSS

              
                @import "compass";
@import url(https://fonts.googleapis.com/css?family=Radley|Roboto:400,500,700);
*, *:after, *:before{
  @include box-sizing(border-box);
}
$prime: #009A4C;
$scnd : #fff;
$warning : #fff;
html{
  background: $prime;
 font-family: 'Roboto', sans-serif;
  overflow: hidden;
}
.clock-container{
  position: relative;
  max-width: 500px;
  margin:50px auto 0;
  &:hover, &.open{
      .clock {
        @include rotateX( -180deg);
        background: $prime/.95;
      }
    .triger{
       @include translateY(20px);
    }
    
      .btn , .form-group{
             @include translateX(0%);
              opacity: 1;
      }
  }
}
.triger{
  border:2px solid $scnd;
  color:$prime;
  font-size: 16px;
  background: $scnd;
  margin: 50px auto -8px;
  display: block;
  text-align: center;
  width: 130px;
  padding: 10px 15px;
  @include border-radius(40px 40px 0 0 );
  @include transition(.2s);
   @include translateY(5px);
  cursor: pointer;
  position: relative;
  z-index: 5;
  
    &:after{
    content: '';
     position: absolute;
    width: 25px;
    height: 25px;
    @include border-radius(100%);
    margin: auto;
    left: 0;right: 0;bottom: 100%;
     border:3px solid $scnd;
  }
  &:focus, &:active{
    outline: none;
  }
}

.clock, .login-form{
  position: relative;
  width: 400px;
  height: 400px;
  background: $prime;
  @include border-radius(100%);
  margin: auto;
  border:2px solid $scnd;
  z-index: 200;
   @include transition(.5s ease-in);
   @include transform-origin( 50% , 100%);
  &:after, &:before{
    content: '';
     position: absolute;
    width: 25px;
    height: 25px;
    @include border-radius(100%);
    margin: auto;
    left: 0;right: 0;top: 0;bottom: 0;
    background: $scnd;
  }
  &:before{
    width: 100%;
    height: 100%;
    background: $prime;
  }
}
.minute , .hour, .second{
  position: absolute;
  width: 3px;
  background: $scnd;
  height: 120px;
  @include transform-origin(0 , 100%);
  @include rotate(0deg);
  left: 0;
  right: 0;
  margin: auto;
  bottom: 50%;
    &:after{
    content: '';
     position: absolute;
    width: 12px;
    height: 12px;
    @include border-radius(100%);
    margin: auto;
    left: -4px;top: 0;
    background: $scnd;
  }
}
.hour{
  height: 75px;
}
.second{
  width: 2px;
   height: 140px;
  &:after{
    left: -5px;
  }
}
.login-form{
  position: absolute;
  top: 35px; left: 0;right: 0;
  padding: 150px 50px 0;
  background: $prime/1.07;
  @include box-shadow(0 0 10px rgba(0,0,0,.3) inset);
  z-index: 100;
  .btn , .form-group{
   @include transition(.3s .4s);
   @include translateX(10%);
    opacity: 0;
  }
  
  &:after, &:before{
    display: none;
  }
}

.clock-numbers {
	display: block;
	font-size: 26px;
	margin: auto;
  position: absolute;
  padding: 0;
  margin: 0;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
  list-style-type: none;
  font-family: 'Radley', serif;
    li {
    position: absolute;
    text-align: center;
    color : $scnd;
      
        &:nth-child(1) {
          left: 50%;
          top: 10px;
        }

        &:nth-child(2) {
          right: 10px;
          top: 50%;
        }

        &:nth-child(3) {
          bottom: 10px;
          left: 50%;
        }

        &:nth-child(4) {
          left: 10px;
          top: 50%;
        }
  }
}




.form-group{
  display: block;
  position: relative;
  min-height: 50px;
  margin-bottom: 15px;
  .form-label{
    color: $scnd;
    position: absolute;
    left: 5px;
    width: 100%;
    top: 7px;
    z-index: 1;
    @include transition(.3s);
  }
  .form-control{
    background: none;
    color: $scnd;
    border:none;
    border-bottom: 1px solid $scnd;
    width: 100%;
    padding: 7px 5px;
    position: relative;
    z-index: 5;
    &:focus{
      border-bottom-color : $warning ;
      outline: none;
      outline: none;
        + .form-label{
          color: $warning;
          @include translateY(-25px);
          font-size: 12px;
      }
    }
    &:valid {
      outline: none;
        + .form-label{
          @include translateY(-25px);
          font-size: 12px;
      }
    }
  }
}
.btn{
  background: $scnd;
  border:1px solid $scnd/1.2;
  font-size: 18px;
  padding: 8px 15px;
  color: $prime;
  font-weight: 200;
  @include border-radius(4px);
  @include  box-shadow(0 1px 5px rgba(0, 0, 0, 0.2));
  width: 150px;
  margin: auto;
  display: block;
  cursor: pointer;
}

.wheel-box{
 position: absolute;
  z-index: 50;
  display: block;
  top: 50%;
  right: 50%;
  width: 360px;
  padding: 0;margin: 0;
  list-style-type: none;
  li{
    position: absolute;
    background:url("https://i.imgur.com/8GFg4yR.png") no-repeat;
    @include animation( rotate 150s linear 0s infinite);
     &:nth-child(1) {
       @include animation( rotateR 120s linear 0s infinite);
        left: 50px;
        top: 0;
        background-position:  -5px 0;
        width: 253px;
        height: 253px;
       z-index: 8;
      }
     &:nth-child(2) {
        background-position: -334px -50px;
       @include  animation-duration(50s);
        width: 111px;
        height: 111px;
        left: 175px;
        top: 115px;
      }
     &:nth-child(3) {
        background-position: 0 -388px;
        @include animation( rotateR 100s linear 0s infinite);
        width: 187px;
	      height: 187px;
        left: 50px;
        top: 195px;
      }
     &:nth-child(4) {
        background-position: -220px -318px;
        height: 285px;
        left: 232px;
        top: 133px;
        width: 285px;
      }
  }
}
@include keyframes(rotate){
    to {@include rotate(360deg);}
}
@include keyframes(rotateR){
    from {@include rotate(360deg);}
    to {@include rotate(0deg);}
}
              
            
!

JS

              
                (function() {

	function getTime() {
    
		var date = new Date(),
		seconds = date.getSeconds(),
		minutes = date.getMinutes(),
		hours = date.getHours(),

		degSeconds = seconds * 360 / 60,
		degMinutes = (minutes + seconds / 60) * 360 / 60,
		degHours = (hours + minutes / 60 + seconds / 60 / 60) * 360 / 12;

		$('.second').css('transform', 'rotate(' + degSeconds + 'deg)');
    $('.minute').css('transform', 'rotate(' + degMinutes + 'deg)');
    $('.hour').css('transform', 'rotate(' + degHours + 'deg)');
	}
	setInterval(getTime, 1000);
	getTime();
} ());


// form Checking
$('.form-control').keyup(function() {
  if($(this).val().length > 0){
    $('.clock-container').addClass('open');
  }

  else{
    $('.clock-container').removeClass('open');
  }
});
              
            
!
999px

Console