You need to sign in before continuing.
index.less 1.23 KB
@fontSize: 30px;
@color: #1890FF;

.clock {
  width: @fontSize;
  height: @fontSize;
  border-radius: 50%;
  border: 3px solid @color;
  box-sizing: border-box;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.7);
}

.clock::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: @color;
}

.hand::before {
  content: "";
  width: 2px;
  height: 7px;
  border-radius: 15px;
  position: absolute;
  top: 50%;
  left: 42%;
  background-color: @color;
  transform-origin: top;
  border: 2px solid @color;
  box-sizing: border-box;
  // animation: tide 40s linear infinite;
}

.hand::after {
  content: "";
  width: 2px;
  height: 11px;
  border-radius: 15px;
  position: absolute;
  top: 50%;
  left: 42%;
  background-color: @color;
  transform-origin: top;
  border: 2px solid @color;
  box-sizing: border-box;
  // animation: tide 5s linear infinite;
}

.move::before {
  animation: tide 40s linear infinite;
}

.move::after {
  animation: tide 5s linear infinite;
}

@keyframes tide {
  to {
    transform: rotateZ(360deg);
  }
}

.rotate {
  width: 1px;
  height: 15px;
  background: #fff;
  margin-bottom: 10px;
  animation: tide 1s linear infinite;
}