javascript-kaputte-flackerne-uhr-optik.php


Quell Code


 <script src="//code.jquery.com/jquery-3.2.1.min.js"></script>
 
<style>
body {
  margin:0;
  padding:0;
 
}

canvas {
  background-image: radial-gradient(black, hsl(10,90%,15%));
  margin:0;
}

 
@import url("https://fonts.googleapis.com/css?family=Lato:400,700");
*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
html,
body {
  height: 100%;
}
body {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  background: #111;
  color: #fff;
}
a.switcher {
  display: block;
  position: fixed;
  text-decoration: none;
  z-index: 999999999999;
  right: 20px;
  bottom: 20px;
  width: 16px;
  height: 16px;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 50%;
  opacity: 0.15;
  -webkit-transition: opacity 0.15s;
  transition: opacity 0.15s;
}
a.switcher:hover {
  opacity: 1;
}
a.switcher:before {
  display: block;
  content: '';
  position: absolute;
  border-radius: 4px;
  width: 2px;
  height: 5px;
  background: #fff;
  top: 0;
  left: 5px;
}
.screen {
  position: relative;
  z-index: 1;
  widht: 100%;
  height: 100%;
  overflow: hidden;
}
.figure {
  display: block;
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  border-top: 200px solid #fff;
  border-right: 100px solid transparent;
  border-left: 100px solid transparent;
  border-bottom: 0 solid transparent;
}
.figure:before {
  display: block;
  content: '';
  position: absolute;
  z-index: 99;
  width: 0;
  height: 0;
  top: -194px;
  left: -90px;
  margin: auto;
  border-top: 180px solid #111;
  border-right: 90px solid transparent;
  border-left: 90px solid transparent;
  border-bottom: 0 solid transparent;
}
.figure-mask {
  display: block;
  position: absolute;
  z-index: 99;
  width: 0;
  height: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  border-top: 200px solid transparent;
  border-right: 100px solid #111;
  border-left: 100px solid #111;
  border-bottom: 0 solid transparent;
}
.clock {
  display: block;
  position: absolute;
  z-index: 9;
  width: 720px;
  height: 128px;
  text-align: center;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  cursor: default;
}
.clock span {
  display: block;
  position: relative;
  font-size: 128px;
  line-height: 1;
}
.clock.is-off {
  -webkit-animation: is-off 2s linear infinite !important;
          animation: is-off 2s linear infinite !important;
}
.glitch:before {
  position: absolute;
  z-index: 999999;
  content: '';
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  -webkit-animation: bg-move 2s linear infinite;
          animation: bg-move 2s linear infinite;
  background-size: 100% 8px;
  background-image: -webkit-gradient(linear, left top, left bottom, from(0), color-stop(10%, rgba(255,255,255,0.05)), color-stop(10%, transparent), color-stop(50%, transparent), color-stop(50%, rgba(255,255,255,0.05)), color-stop(60%, rgba(255,255,255,0.05)), color-stop(60%, transparent), to(transparent));
  background-image: linear-gradient(0, rgba(255,255,255,0.05) 10%, transparent 10%, transparent 50%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.05) 60%, transparent 60%, transparent);
}
.glitch .figure,
.glitch .figure-mask {
  -webkit-transform: skewX(0deg) scaleY(1);
          transform: skewX(0deg) scaleY(1);
  -webkit-animation: tr-bag 4s linear infinite;
          animation: tr-bag 4s linear infinite;
}
.glitch .clock {
  -webkit-transform: skewX(0deg) scaleY(1);
          transform: skewX(0deg) scaleY(1);
  -webkit-animation: clock-bag 4s linear infinite;
          animation: clock-bag 4s linear infinite;
}
.glitch .clock span:before,
.glitch .clock span:after {
  display: block;
  content: attr(data-time);
  position: absolute;
  top: 0;
  color: #fff;
  background: #111;
  overflow: hidden;
  width: 720px;
  height: 128px;
  clip: rect(0, 900px, 0, 0);
}
.glitch .clock span:before {
  left: -2px;
  text-shadow: 2px 0 #00f;
  animation: c2 1s infinite linear alternate-reverse;
}
.glitch .clock span:after {
  left: 3px;
  text-shadow: -2px 0 #f00;
  animation: c1 2s infinite linear alternate-reverse;
}
@-webkit-keyframes is-off {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  56% {
    opacity: 0;
  }
  57% {
    opacity: 0;
  }
  58% {
    opacity: 1;
  }
  71% {
    -webkit-transform: scaleY(1) skewX(0deg);
            transform: scaleY(1) skewX(0deg);
  }
  72% {
    -webkit-transform: scaleY(3) skewX(-60deg);
            transform: scaleY(3) skewX(-60deg);
  }
  73% {
    -webkit-transform: scaleY(1) skewX(0deg);
            transform: scaleY(1) skewX(0deg);
  }
  80% {
    opacity: 1;
  }
  81% {
    opacity: 0;
  }
  84% {
    opacity: 0;
  }
  85% {
    opacity: 1;
  }
  91% {
    -webkit-transform: scaleX(1) scaleY(1) skewX(0deg);
            transform: scaleX(1) scaleY(1) skewX(0deg);
    color: #fff;
  }
  92% {
    -webkit-transform: scaleX(1.5) scaleY(0.2) skewX(80deg);
            transform: scaleX(1.5) scaleY(0.2) skewX(80deg);
    color: #008000;
  }
  93% {
    -webkit-transform: scaleX(1) scaleY(1) skewX(0deg);
            transform: scaleX(1) scaleY(1) skewX(0deg);
    color: #fff;
  }
}
@keyframes is-off {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  56% {
    opacity: 0;
  }
  57% {
    opacity: 0;
  }
  58% {
    opacity: 1;
  }
  71% {
    -webkit-transform: scaleY(1) skewX(0deg);
            transform: scaleY(1) skewX(0deg);
  }
  72% {
    -webkit-transform: scaleY(3) skewX(-60deg);
            transform: scaleY(3) skewX(-60deg);
  }
  73% {
    -webkit-transform: scaleY(1) skewX(0deg);
            transform: scaleY(1) skewX(0deg);
  }
  80% {
    opacity: 1;
  }
  81% {
    opacity: 0;
  }
  84% {
    opacity: 0;
  }
  85% {
    opacity: 1;
  }
  91% {
    -webkit-transform: scaleX(1) scaleY(1) skewX(0deg);
            transform: scaleX(1) scaleY(1) skewX(0deg);
    color: #fff;
  }
  92% {
    -webkit-transform: scaleX(1.5) scaleY(0.2) skewX(80deg);
            transform: scaleX(1.5) scaleY(0.2) skewX(80deg);
    color: #008000;
  }
  93% {
    -webkit-transform: scaleX(1) scaleY(1) skewX(0deg);
            transform: scaleX(1) scaleY(1) skewX(0deg);
    color: #fff;
  }
}
@-webkit-keyframes c1 {
  0% {
    clip: rect(47px, 9999px, 2px, 0);
  }
  5% {
    clip: rect(78px, 9999px, 52px, 0);
  }
  10% {
    clip: rect(81px, 9999px, 7px, 0);
  }
  15.000000000000002% {
    clip: rect(25px, 9999px, 12px, 0);
  }
  20% {
    clip: rect(52px, 9999px, 79px, 0);
  }
  25% {
    clip: rect(25px, 9999px, 61px, 0);
  }
  30.000000000000004% {
    clip: rect(28px, 9999px, 12px, 0);
  }
  35.00000000000001% {
    clip: rect(94px, 9999px, 5px, 0);
  }
  40% {
    clip: rect(70px, 9999px, 65px, 0);
  }
  45% {
    clip: rect(32px, 9999px, 61px, 0);
  }
  50% {
    clip: rect(53px, 9999px, 1px, 0);
  }
  55% {
    clip: rect(56px, 9999px, 29px, 0);
  }
  60.00000000000001% {
    clip: rect(48px, 9999px, 26px, 0);
  }
  65% {
    clip: rect(24px, 9999px, 88px, 0);
  }
  70.00000000000001% {
    clip: rect(38px, 9999px, 98px, 0);
  }
  75% {
    clip: rect(12px, 9999px, 53px, 0);
  }
  80% {
    clip: rect(43px, 9999px, 55px, 0);
  }
  85% {
    clip: rect(5px, 9999px, 13px, 0);
  }
  90% {
    clip: rect(25px, 9999px, 28px, 0);
  }
  95% {
    clip: rect(34px, 9999px, 20px, 0);
  }
  100% {
    clip: rect(63px, 9999px, 2px, 0);
  }
}
@keyframes c1 {
  0% {
    clip: rect(47px, 9999px, 2px, 0);
  }
  5% {
    clip: rect(78px, 9999px, 52px, 0);
  }
  10% {
    clip: rect(81px, 9999px, 7px, 0);
  }
  15.000000000000002% {
    clip: rect(25px, 9999px, 12px, 0);
  }
  20% {
    clip: rect(52px, 9999px, 79px, 0);
  }
  25% {
    clip: rect(25px, 9999px, 61px, 0);
  }
  30.000000000000004% {
    clip: rect(28px, 9999px, 12px, 0);
  }
  35.00000000000001% {
    clip: rect(94px, 9999px, 5px, 0);
  }
  40% {
    clip: rect(70px, 9999px, 65px, 0);
  }
  45% {
    clip: rect(32px, 9999px, 61px, 0);
  }
  50% {
    clip: rect(53px, 9999px, 1px, 0);
  }
  55% {
    clip: rect(56px, 9999px, 29px, 0);
  }
  60.00000000000001% {
    clip: rect(48px, 9999px, 26px, 0);
  }
  65% {
    clip: rect(24px, 9999px, 88px, 0);
  }
  70.00000000000001% {
    clip: rect(38px, 9999px, 98px, 0);
  }
  75% {
    clip: rect(12px, 9999px, 53px, 0);
  }
  80% {
    clip: rect(43px, 9999px, 55px, 0);
  }
  85% {
    clip: rect(5px, 9999px, 13px, 0);
  }
  90% {
    clip: rect(25px, 9999px, 28px, 0);
  }
  95% {
    clip: rect(34px, 9999px, 20px, 0);
  }
  100% {
    clip: rect(63px, 9999px, 2px, 0);
  }
}
@-webkit-keyframes c2 {
  0% {
    clip: rect(20px, 9999px, 19px, 0);
  }
  5% {
    clip: rect(94px, 9999px, 87px, 0);
  }
  10% {
    clip: rect(8px, 9999px, 82px, 0);
  }
  15.000000000000002% {
    clip: rect(61px, 9999px, 42px, 0);
  }
  20% {
    clip: rect(37px, 9999px, 63px, 0);
  }
  25% {
    clip: rect(20px, 9999px, 49px, 0);
  }
  30.000000000000004% {
    clip: rect(49px, 9999px, 36px, 0);
  }
  35.00000000000001% {
    clip: rect(68px, 9999px, 70px, 0);
  }
  40% {
    clip: rect(63px, 9999px, 78px, 0);
  }
  45% {
    clip: rect(53px, 9999px, 18px, 0);
  }
  50% {
    clip: rect(80px, 9999px, 99px, 0);
  }
  55% {
    clip: rect(13px, 9999px, 64px, 0);
  }
  60.00000000000001% {
    clip: rect(39px, 9999px, 42px, 0);
  }
  65% {
    clip: rect(27px, 9999px, 52px, 0);
  }
  70.00000000000001% {
    clip: rect(7px, 9999px, 64px, 0);
  }
  75% {
    clip: rect(29px, 9999px, 6px, 0);
  }
  80% {
    clip: rect(37px, 9999px, 30px, 0);
  }
  85% {
    clip: rect(88px, 9999px, 16px, 0);
  }
  90% {
    clip: rect(51px, 9999px, 77px, 0);
  }
  95% {
    clip: rect(36px, 9999px, 19px, 0);
  }
  100% {
    clip: rect(45px, 9999px, 78px, 0);
  }
  23% {
    -webkit-transform: scaleX(0.8);
            transform: scaleX(0.8);
  }
}
@keyframes c2 {
  0% {
    clip: rect(20px, 9999px, 19px, 0);
  }
  5% {
    clip: rect(94px, 9999px, 87px, 0);
  }
  10% {
    clip: rect(8px, 9999px, 82px, 0);
  }
  15.000000000000002% {
    clip: rect(61px, 9999px, 42px, 0);
  }
  20% {
    clip: rect(37px, 9999px, 63px, 0);
  }
  25% {
    clip: rect(20px, 9999px, 49px, 0);
  }
  30.000000000000004% {
    clip: rect(49px, 9999px, 36px, 0);
  }
  35.00000000000001% {
    clip: rect(68px, 9999px, 70px, 0);
  }
  40% {
    clip: rect(63px, 9999px, 78px, 0);
  }
  45% {
    clip: rect(53px, 9999px, 18px, 0);
  }
  50% {
    clip: rect(80px, 9999px, 99px, 0);
  }
  55% {
    clip: rect(13px, 9999px, 64px, 0);
  }
  60.00000000000001% {
    clip: rect(39px, 9999px, 42px, 0);
  }
  65% {
    clip: rect(27px, 9999px, 52px, 0);
  }
  70.00000000000001% {
    clip: rect(7px, 9999px, 64px, 0);
  }
  75% {
    clip: rect(29px, 9999px, 6px, 0);
  }
  80% {
    clip: rect(37px, 9999px, 30px, 0);
  }
  85% {
    clip: rect(88px, 9999px, 16px, 0);
  }
  90% {
    clip: rect(51px, 9999px, 77px, 0);
  }
  95% {
    clip: rect(36px, 9999px, 19px, 0);
  }
  100% {
    clip: rect(45px, 9999px, 78px, 0);
  }
  23% {
    -webkit-transform: scaleX(0.8);
            transform: scaleX(0.8);
  }
}
@-webkit-keyframes clock-bag {
  0% {
    -webkit-transform: translate(5px, 1px);
            transform: translate(5px, 1px);
  }
  2% {
    -webkit-transform: translate(1px, 3px);
            transform: translate(1px, 3px);
  }
  4% {
    -webkit-transform: translate(3px, 4px);
            transform: translate(3px, 4px);
  }
  6% {
    -webkit-transform: translate(5px, 5px);
            transform: translate(5px, 5px);
  }
  8% {
    -webkit-transform: translate(3px, 5px);
            transform: translate(3px, 5px);
  }
  10% {
    -webkit-transform: translate(5px, 3px);
            transform: translate(5px, 3px);
  }
  12% {
    -webkit-transform: translate(4px, 5px);
            transform: translate(4px, 5px);
  }
  14.000000000000002% {
    -webkit-transform: translate(4px, 5px);
            transform: translate(4px, 5px);
  }
  16% {
    -webkit-transform: translate(3px, 4px);
            transform: translate(3px, 4px);
  }
  18% {
    -webkit-transform: translate(4px, 4px);
            transform: translate(4px, 4px);
  }
  20% {
    -webkit-transform: translate(4px, 2px);
            transform: translate(4px, 2px);
  }
  22% {
    -webkit-transform: translate(1px, 3px);
            transform: translate(1px, 3px);
  }
  24% {
    -webkit-transform: translate(2px, 2px);
            transform: translate(2px, 2px);
  }
  26% {
    -webkit-transform: translate(4px, 3px);
            transform: translate(4px, 3px);
  }
  28.000000000000004% {
    -webkit-transform: translate(5px, 1px);
            transform: translate(5px, 1px);
  }
  30% {
    -webkit-transform: translate(1px, 2px);
            transform: translate(1px, 2px);
  }
  32% {
    -webkit-transform: translate(1px, 2px);
            transform: translate(1px, 2px);
  }
  34% {
    -webkit-transform: translate(1px, 1px);
            transform: translate(1px, 1px);
  }
  36% {
    -webkit-transform: translate(2px, 2px);
            transform: translate(2px, 2px);
  }
  38% {
    -webkit-transform: translate(1px, 3px);
            transform: translate(1px, 3px);
  }
  40% {
    -webkit-transform: translate(2px, 4px);
            transform: translate(2px, 4px);
  }
  42% {
    -webkit-transform: translate(4px, 1px);
            transform: translate(4px, 1px);
  }
  44% {
    -webkit-transform: translate(4px, 1px);
            transform: translate(4px, 1px);
  }
  46.00000000000001% {
    -webkit-transform: translate(2px, 3px);
            transform: translate(2px, 3px);
  }
  48% {
    -webkit-transform: translate(4px, 2px);
            transform: translate(4px, 2px);
  }
  50% {
    -webkit-transform: translate(1px, 4px);
            transform: translate(1px, 4px);
  }
  52% {
    -webkit-transform: translate(5px, 1px);
            transform: translate(5px, 1px);
  }
  54% {
    -webkit-transform: translate(4px, 1px);
            transform: translate(4px, 1px);
  }
  56.00000000000001% {
    -webkit-transform: translate(4px, 5px);
            transform: translate(4px, 5px);
  }
  58% {
    -webkit-transform: translate(3px, 5px);
            transform: translate(3px, 5px);
  }
  60% {
    -webkit-transform: translate(2px, 4px);
            transform: translate(2px, 4px);
  }
  62% {
    -webkit-transform: translate(5px, 4px);
            transform: translate(5px, 4px);
  }
  64% {
    -webkit-transform: translate(5px, 3px);
            transform: translate(5px, 3px);
  }
  66% {
    -webkit-transform: translate(3px, 5px);
            transform: translate(3px, 5px);
  }
  68% {
    -webkit-transform: translate(3px, 4px);
            transform: translate(3px, 4px);
  }
  70.00000000000001% {
    -webkit-transform: translate(3px, 3px);
            transform: translate(3px, 3px);
  }
  72% {
    -webkit-transform: translate(1px, 4px);
            transform: translate(1px, 4px);
  }
  74% {
    -webkit-transform: translate(5px, 1px);
            transform: translate(5px, 1px);
  }
  76% {
    -webkit-transform: translate(1px, 1px);
            transform: translate(1px, 1px);
  }
  78% {
    -webkit-transform: translate(4px, 2px);
            transform: translate(4px, 2px);
  }
  80% {
    -webkit-transform: translate(1px, 4px);
            transform: translate(1px, 4px);
  }
  82.00000000000001% {
    -webkit-transform: translate(2px, 3px);
            transform: translate(2px, 3px);
  }
  84% {
    -webkit-transform: translate(4px, 4px);
            transform: translate(4px, 4px);
  }
  86% {
    -webkit-transform: translate(3px, 1px);
            transform: translate(3px, 1px);
  }
  88% {
    -webkit-transform: translate(2px, 1px);
            transform: translate(2px, 1px);
  }
  90% {
    -webkit-transform: translate(5px, 4px);
            transform: translate(5px, 4px);
  }
  92.00000000000001% {
    -webkit-transform: translate(5px, 2px);
            transform: translate(5px, 2px);
  }
  94% {
    -webkit-transform: translate(4px, 1px);
            transform: translate(4px, 1px);
  }
  96% {
    -webkit-transform: translate(3px, 4px);
            transform: translate(3px, 4px);
  }
  98% {
    -webkit-transform: translate(3px, 5px);
            transform: translate(3px, 5px);
  }
  100% {
    -webkit-transform: translate(2px, 1px);
            transform: translate(2px, 1px);
  }
  1% {
    -webkit-transform: scaleY(1) skewX(0deg);
            transform: scaleY(1) skewX(0deg);
  }
  1.5% {
    -webkit-transform: scaleY(3) skewX(-60deg);
            transform: scaleY(3) skewX(-60deg);
  }
  2% {
    -webkit-transform: scaleY(1) skewX(0deg);
            transform: scaleY(1) skewX(0deg);
  }
  51% {
    -webkit-transform: scaleX(1) scaleY(1) skewX(0deg);
            transform: scaleX(1) scaleY(1) skewX(0deg);
  }
  52% {
    -webkit-transform: scaleX(1.5) scaleY(0.2) skewX(80deg);
            transform: scaleX(1.5) scaleY(0.2) skewX(80deg);
  }
  53% {
    -webkit-transform: scaleX(1) scaleY(1) skewX(0deg);
            transform: scaleX(1) scaleY(1) skewX(0deg);
  }
}
@keyframes clock-bag {
  0% {
    -webkit-transform: translate(5px, 1px);
            transform: translate(5px, 1px);
  }
  2% {
    -webkit-transform: translate(1px, 3px);
            transform: translate(1px, 3px);
  }
  4% {
    -webkit-transform: translate(3px, 4px);
            transform: translate(3px, 4px);
  }
  6% {
    -webkit-transform: translate(5px, 5px);
            transform: translate(5px, 5px);
  }
  8% {
    -webkit-transform: translate(3px, 5px);
            transform: translate(3px, 5px);
  }
  10% {
    -webkit-transform: translate(5px, 3px);
            transform: translate(5px, 3px);
  }
  12% {
    -webkit-transform: translate(4px, 5px);
            transform: translate(4px, 5px);
  }
  14.000000000000002% {
    -webkit-transform: translate(4px, 5px);
            transform: translate(4px, 5px);
  }
  16% {
    -webkit-transform: translate(3px, 4px);
            transform: translate(3px, 4px);
  }
  18% {
    -webkit-transform: translate(4px, 4px);
            transform: translate(4px, 4px);
  }
  20% {
    -webkit-transform: translate(4px, 2px);
            transform: translate(4px, 2px);
  }
  22% {
    -webkit-transform: translate(1px, 3px);
            transform: translate(1px, 3px);
  }
  24% {
    -webkit-transform: translate(2px, 2px);
            transform: translate(2px, 2px);
  }
  26% {
    -webkit-transform: translate(4px, 3px);
            transform: translate(4px, 3px);
  }
  28.000000000000004% {
    -webkit-transform: translate(5px, 1px);
            transform: translate(5px, 1px);
  }
  30% {
    -webkit-transform: translate(1px, 2px);
            transform: translate(1px, 2px);
  }
  32% {
    -webkit-transform: translate(1px, 2px);
            transform: translate(1px, 2px);
  }
  34% {
    -webkit-transform: translate(1px, 1px);
            transform: translate(1px, 1px);
  }
  36% {
    -webkit-transform: translate(2px, 2px);
            transform: translate(2px, 2px);
  }
  38% {
    -webkit-transform: translate(1px, 3px);
            transform: translate(1px, 3px);
  }
  40% {
    -webkit-transform: translate(2px, 4px);
            transform: translate(2px, 4px);
  }
  42% {
    -webkit-transform: translate(4px, 1px);
            transform: translate(4px, 1px);
  }
  44% {
    -webkit-transform: translate(4px, 1px);
            transform: translate(4px, 1px);
  }
  46.00000000000001% {
    -webkit-transform: translate(2px, 3px);
            transform: translate(2px, 3px);
  }
  48% {
    -webkit-transform: translate(4px, 2px);
            transform: translate(4px, 2px);
  }
  50% {
    -webkit-transform: translate(1px, 4px);
            transform: translate(1px, 4px);
  }
  52% {
    -webkit-transform: translate(5px, 1px);
            transform: translate(5px, 1px);
  }
  54% {
    -webkit-transform: translate(4px, 1px);
            transform: translate(4px, 1px);
  }
  56.00000000000001% {
    -webkit-transform: translate(4px, 5px);
            transform: translate(4px, 5px);
  }
  58% {
    -webkit-transform: translate(3px, 5px);
            transform: translate(3px, 5px);
  }
  60% {
    -webkit-transform: translate(2px, 4px);
            transform: translate(2px, 4px);
  }
  62% {
    -webkit-transform: translate(5px, 4px);
            transform: translate(5px, 4px);
  }
  64% {
    -webkit-transform: translate(5px, 3px);
            transform: translate(5px, 3px);
  }
  66% {
    -webkit-transform: translate(3px, 5px);
            transform: translate(3px, 5px);
  }
  68% {
    -webkit-transform: translate(3px, 4px);
            transform: translate(3px, 4px);
  }
  70.00000000000001% {
    -webkit-transform: translate(3px, 3px);
            transform: translate(3px, 3px);
  }
  72% {
    -webkit-transform: translate(1px, 4px);
            transform: translate(1px, 4px);
  }
  74% {
    -webkit-transform: translate(5px, 1px);
            transform: translate(5px, 1px);
  }
  76% {
    -webkit-transform: translate(1px, 1px);
            transform: translate(1px, 1px);
  }
  78% {
    -webkit-transform: translate(4px, 2px);
            transform: translate(4px, 2px);
  }
  80% {
    -webkit-transform: translate(1px, 4px);
            transform: translate(1px, 4px);
  }
  82.00000000000001% {
    -webkit-transform: translate(2px, 3px);
            transform: translate(2px, 3px);
  }
  84% {
    -webkit-transform: translate(4px, 4px);
            transform: translate(4px, 4px);
  }
  86% {
    -webkit-transform: translate(3px, 1px);
            transform: translate(3px, 1px);
  }
  88% {
    -webkit-transform: translate(2px, 1px);
            transform: translate(2px, 1px);
  }
  90% {
    -webkit-transform: translate(5px, 4px);
            transform: translate(5px, 4px);
  }
  92.00000000000001% {
    -webkit-transform: translate(5px, 2px);
            transform: translate(5px, 2px);
  }
  94% {
    -webkit-transform: translate(4px, 1px);
            transform: translate(4px, 1px);
  }
  96% {
    -webkit-transform: translate(3px, 4px);
            transform: translate(3px, 4px);
  }
  98% {
    -webkit-transform: translate(3px, 5px);
            transform: translate(3px, 5px);
  }
  100% {
    -webkit-transform: translate(2px, 1px);
            transform: translate(2px, 1px);
  }
  1% {
    -webkit-transform: scaleY(1) skewX(0deg);
            transform: scaleY(1) skewX(0deg);
  }
  1.5% {
    -webkit-transform: scaleY(3) skewX(-60deg);
            transform: scaleY(3) skewX(-60deg);
  }
  2% {
    -webkit-transform: scaleY(1) skewX(0deg);
            transform: scaleY(1) skewX(0deg);
  }
  51% {
    -webkit-transform: scaleX(1) scaleY(1) skewX(0deg);
            transform: scaleX(1) scaleY(1) skewX(0deg);
  }
  52% {
    -webkit-transform: scaleX(1.5) scaleY(0.2) skewX(80deg);
            transform: scaleX(1.5) scaleY(0.2) skewX(80deg);
  }
  53% {
    -webkit-transform: scaleX(1) scaleY(1) skewX(0deg);
            transform: scaleX(1) scaleY(1) skewX(0deg);
  }
}
@-webkit-keyframes tr-bag {
  0% {
    -webkit-transform: translate(4px, 2px);
            transform: translate(4px, 2px);
  }
  2% {
    -webkit-transform: translate(4px, 1px);
            transform: translate(4px, 1px);
  }
  4% {
    -webkit-transform: translate(2px, 5px);
            transform: translate(2px, 5px);
  }
  6% {
    -webkit-transform: translate(4px, 5px);
            transform: translate(4px, 5px);
  }
  8% {
    -webkit-transform: translate(5px, 3px);
            transform: translate(5px, 3px);
  }
  10% {
    -webkit-transform: translate(5px, 5px);
            transform: translate(5px, 5px);
  }
  12% {
    -webkit-transform: translate(4px, 2px);
            transform: translate(4px, 2px);
  }
  14.000000000000002% {
    -webkit-transform: translate(1px, 5px);
            transform: translate(1px, 5px);
  }
  16% {
    -webkit-transform: translate(2px, 1px);
            transform: translate(2px, 1px);
  }
  18% {
    -webkit-transform: translate(3px, 4px);
            transform: translate(3px, 4px);
  }
  20% {
    -webkit-transform: translate(2px, 2px);
            transform: translate(2px, 2px);
  }
  22% {
    -webkit-transform: translate(1px, 4px);
            transform: translate(1px, 4px);
  }
  24% {
    -webkit-transform: translate(3px, 4px);
            transform: translate(3px, 4px);
  }
  26% {
    -webkit-transform: translate(1px, 5px);
            transform: translate(1px, 5px);
  }
  28.000000000000004% {
    -webkit-transform: translate(5px, 2px);
            transform: translate(5px, 2px);
  }
  30% {
    -webkit-transform: translate(5px, 1px);
            transform: translate(5px, 1px);
  }
  32% {
    -webkit-transform: translate(2px, 4px);
            transform: translate(2px, 4px);
  }
  34% {
    -webkit-transform: translate(5px, 5px);
            transform: translate(5px, 5px);
  }
  36% {
    -webkit-transform: translate(1px, 4px);
            transform: translate(1px, 4px);
  }
  38% {
    -webkit-transform: translate(2px, 1px);
            transform: translate(2px, 1px);
  }
  40% {
    -webkit-transform: translate(3px, 1px);
            transform: translate(3px, 1px);
  }
  42% {
    -webkit-transform: translate(4px, 1px);
            transform: translate(4px, 1px);
  }
  44% {
    -webkit-transform: translate(1px, 1px);
            transform: translate(1px, 1px);
  }
  46.00000000000001% {
    -webkit-transform: translate(5px, 1px);
            transform: translate(5px, 1px);
  }
  48% {
    -webkit-transform: translate(1px, 1px);
            transform: translate(1px, 1px);
  }
  50% {
    -webkit-transform: translate(2px, 4px);
            transform: translate(2px, 4px);
  }
  52% {
    -webkit-transform: translate(2px, 4px);
            transform: translate(2px, 4px);
  }
  54% {
    -webkit-transform: translate(4px, 3px);
            transform: translate(4px, 3px);
  }
  56.00000000000001% {
    -webkit-transform: translate(3px, 5px);
            transform: translate(3px, 5px);
  }
  58% {
    -webkit-transform: translate(2px, 3px);
            transform: translate(2px, 3px);
  }
  60% {
    -webkit-transform: translate(1px, 5px);
            transform: translate(1px, 5px);
  }
  62% {
    -webkit-transform: translate(4px, 5px);
            transform: translate(4px, 5px);
  }
  64% {
    -webkit-transform: translate(5px, 3px);
            transform: translate(5px, 3px);
  }
  66% {
    -webkit-transform: translate(4px, 4px);
            transform: translate(4px, 4px);
  }
  68% {
    -webkit-transform: translate(1px, 4px);
            transform: translate(1px, 4px);
  }
  70.00000000000001% {
    -webkit-transform: translate(1px, 3px);
            transform: translate(1px, 3px);
  }
  72% {
    -webkit-transform: translate(3px, 5px);
            transform: translate(3px, 5px);
  }
  74% {
    -webkit-transform: translate(4px, 4px);
            transform: translate(4px, 4px);
  }
  76% {
    -webkit-transform: translate(5px, 3px);
            transform: translate(5px, 3px);
  }
  78% {
    -webkit-transform: translate(2px, 4px);
            transform: translate(2px, 4px);
  }
  80% {
    -webkit-transform: translate(3px, 1px);
            transform: translate(3px, 1px);
  }
  82.00000000000001% {
    -webkit-transform: translate(2px, 2px);
            transform: translate(2px, 2px);
  }
  84% {
    -webkit-transform: translate(1px, 4px);
            transform: translate(1px, 4px);
  }
  86% {
    -webkit-transform: translate(5px, 3px);
            transform: translate(5px, 3px);
  }
  88% {
    -webkit-transform: translate(3px, 1px);
            transform: translate(3px, 1px);
  }
  90% {
    -webkit-transform: translate(4px, 4px);
            transform: translate(4px, 4px);
  }
  92.00000000000001% {
    -webkit-transform: translate(4px, 4px);
            transform: translate(4px, 4px);
  }
  94% {
    -webkit-transform: translate(2px, 2px);
            transform: translate(2px, 2px);
  }
  96% {
    -webkit-transform: translate(5px, 3px);
            transform: translate(5px, 3px);
  }
  98% {
    -webkit-transform: translate(1px, 5px);
            transform: translate(1px, 5px);
  }
  100% {
    -webkit-transform: translate(4px, 5px);
            transform: translate(4px, 5px);
  }
  1% {
    -webkit-transform: scaleY(1) skewX(0deg);
            transform: scaleY(1) skewX(0deg);
  }
  1.5% {
    -webkit-transform: scaleY(3) skewX(-60deg);
            transform: scaleY(3) skewX(-60deg);
  }
  2% {
    -webkit-transform: scaleY(1) skewX(0deg);
            transform: scaleY(1) skewX(0deg);
  }
  51% {
    -webkit-transform: scaleX(1) scaleY(1) skewX(0deg);
            transform: scaleX(1) scaleY(1) skewX(0deg);
  }
  52% {
    -webkit-transform: scaleX(1.5) scaleY(0.2) skewX(80deg);
            transform: scaleX(1.5) scaleY(0.2) skewX(80deg);
  }
  53% {
    -webkit-transform: scaleX(1) scaleY(1) skewX(0deg);
            transform: scaleX(1) scaleY(1) skewX(0deg);
  }
}
@keyframes tr-bag {
  0% {
    -webkit-transform: translate(4px, 2px);
            transform: translate(4px, 2px);
  }
  2% {
    -webkit-transform: translate(4px, 1px);
            transform: translate(4px, 1px);
  }
  4% {
    -webkit-transform: translate(2px, 5px);
            transform: translate(2px, 5px);
  }
  6% {
    -webkit-transform: translate(4px, 5px);
            transform: translate(4px, 5px);
  }
  8% {
    -webkit-transform: translate(5px, 3px);
            transform: translate(5px, 3px);
  }
  10% {
    -webkit-transform: translate(5px, 5px);
            transform: translate(5px, 5px);
  }
  12% {
    -webkit-transform: translate(4px, 2px);
            transform: translate(4px, 2px);
  }
  14.000000000000002% {
    -webkit-transform: translate(1px, 5px);
            transform: translate(1px, 5px);
  }
  16% {
    -webkit-transform: translate(2px, 1px);
            transform: translate(2px, 1px);
  }
  18% {
    -webkit-transform: translate(3px, 4px);
            transform: translate(3px, 4px);
  }
  20% {
    -webkit-transform: translate(2px, 2px);
            transform: translate(2px, 2px);
  }
  22% {
    -webkit-transform: translate(1px, 4px);
            transform: translate(1px, 4px);
  }
  24% {
    -webkit-transform: translate(3px, 4px);
            transform: translate(3px, 4px);
  }
  26% {
    -webkit-transform: translate(1px, 5px);
            transform: translate(1px, 5px);
  }
  28.000000000000004% {
    -webkit-transform: translate(5px, 2px);
            transform: translate(5px, 2px);
  }
  30% {
    -webkit-transform: translate(5px, 1px);
            transform: translate(5px, 1px);
  }
  32% {
    -webkit-transform: translate(2px, 4px);
            transform: translate(2px, 4px);
  }
  34% {
    -webkit-transform: translate(5px, 5px);
            transform: translate(5px, 5px);
  }
  36% {
    -webkit-transform: translate(1px, 4px);
            transform: translate(1px, 4px);
  }
  38% {
    -webkit-transform: translate(2px, 1px);
            transform: translate(2px, 1px);
  }
  40% {
    -webkit-transform: translate(3px, 1px);
            transform: translate(3px, 1px);
  }
  42% {
    -webkit-transform: translate(4px, 1px);
            transform: translate(4px, 1px);
  }
  44% {
    -webkit-transform: translate(1px, 1px);
            transform: translate(1px, 1px);
  }
  46.00000000000001% {
    -webkit-transform: translate(5px, 1px);
            transform: translate(5px, 1px);
  }
  48% {
    -webkit-transform: translate(1px, 1px);
            transform: translate(1px, 1px);
  }
  50% {
    -webkit-transform: translate(2px, 4px);
            transform: translate(2px, 4px);
  }
  52% {
    -webkit-transform: translate(2px, 4px);
            transform: translate(2px, 4px);
  }
  54% {
    -webkit-transform: translate(4px, 3px);
            transform: translate(4px, 3px);
  }
  56.00000000000001% {
    -webkit-transform: translate(3px, 5px);
            transform: translate(3px, 5px);
  }
  58% {
    -webkit-transform: translate(2px, 3px);
            transform: translate(2px, 3px);
  }
  60% {
    -webkit-transform: translate(1px, 5px);
            transform: translate(1px, 5px);
  }
  62% {
    -webkit-transform: translate(4px, 5px);
            transform: translate(4px, 5px);
  }
  64% {
    -webkit-transform: translate(5px, 3px);
            transform: translate(5px, 3px);
  }
  66% {
    -webkit-transform: translate(4px, 4px);
            transform: translate(4px, 4px);
  }
  68% {
    -webkit-transform: translate(1px, 4px);
            transform: translate(1px, 4px);
  }
  70.00000000000001% {
    -webkit-transform: translate(1px, 3px);
            transform: translate(1px, 3px);
  }
  72% {
    -webkit-transform: translate(3px, 5px);
            transform: translate(3px, 5px);
  }
  74% {
    -webkit-transform: translate(4px, 4px);
            transform: translate(4px, 4px);
  }
  76% {
    -webkit-transform: translate(5px, 3px);
            transform: translate(5px, 3px);
  }
  78% {
    -webkit-transform: translate(2px, 4px);
            transform: translate(2px, 4px);
  }
  80% {
    -webkit-transform: translate(3px, 1px);
            transform: translate(3px, 1px);
  }
  82.00000000000001% {
    -webkit-transform: translate(2px, 2px);
            transform: translate(2px, 2px);
  }
  84% {
    -webkit-transform: translate(1px, 4px);
            transform: translate(1px, 4px);
  }
  86% {
    -webkit-transform: translate(5px, 3px);
            transform: translate(5px, 3px);
  }
  88% {
    -webkit-transform: translate(3px, 1px);
            transform: translate(3px, 1px);
  }
  90% {
    -webkit-transform: translate(4px, 4px);
            transform: translate(4px, 4px);
  }
  92.00000000000001% {
    -webkit-transform: translate(4px, 4px);
            transform: translate(4px, 4px);
  }
  94% {
    -webkit-transform: translate(2px, 2px);
            transform: translate(2px, 2px);
  }
  96% {
    -webkit-transform: translate(5px, 3px);
            transform: translate(5px, 3px);
  }
  98% {
    -webkit-transform: translate(1px, 5px);
            transform: translate(1px, 5px);
  }
  100% {
    -webkit-transform: translate(4px, 5px);
            transform: translate(4px, 5px);
  }
  1% {
    -webkit-transform: scaleY(1) skewX(0deg);
            transform: scaleY(1) skewX(0deg);
  }
  1.5% {
    -webkit-transform: scaleY(3) skewX(-60deg);
            transform: scaleY(3) skewX(-60deg);
  }
  2% {
    -webkit-transform: scaleY(1) skewX(0deg);
            transform: scaleY(1) skewX(0deg);
  }
  51% {
    -webkit-transform: scaleX(1) scaleY(1) skewX(0deg);
            transform: scaleX(1) scaleY(1) skewX(0deg);
  }
  52% {
    -webkit-transform: scaleX(1.5) scaleY(0.2) skewX(80deg);
            transform: scaleX(1.5) scaleY(0.2) skewX(80deg);
  }
  53% {
    -webkit-transform: scaleX(1) scaleY(1) skewX(0deg);
            transform: scaleX(1) scaleY(1) skewX(0deg);
  }
}
@-webkit-keyframes bg-move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 -32px;
  }
}
@keyframes bg-move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 -32px;
  }
}




</style>
 


 
<a class="switcher" href="#"></a>
<div class="screen glitch">
  <div class="clock is-off"><span class="time" data-time=""></span></div>
  <div class="figure"></div>
  <div class="figure-mask"></div>
</div>

 

 

<script>
$(document).ready(function () {

  function second_passed() {
    $('.clock').removeClass('is-off');
  }
  setTimeout(second_passed, 2000)

  $('.switcher').on('click', function(e) {
    e.preventDefault();
    $('.screen').toggleClass('glitch');
  });


  var newDate = new Date();
  newDate.setDate(newDate.getDate());

  setInterval( function() {

    var hours    = new Date().getHours();
    var seconds  = new Date().getSeconds();
    var minutes  = new Date().getMinutes();

    var realTime = ( hours < 10 ? '0' : '' ) + hours + ' : ' + ( minutes < 10 ? '0' : '' ) + minutes + ' : ' + ( seconds < 10 ? '0' : '' ) + seconds

    $('.time').html(realTime);
    $('.time').attr('data-time', realTime);

  }, 1000);

});
</script>




 


Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0