react实现一个另类时钟走动效果
代码语言:html
所属分类:动画
代码描述:react实现一个另类时钟走动效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=Lato:300" rel="stylesheet">
<style>
* {
  -webkit-transition: all .5s;
  transition: all .5s;
}
body {
  background-color: #252525;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
}
.text {
  position: absolute;
  left: 10px;
  bottom: 10px;
}
.text, a {
  color: #f4f4f4;
  font-weight: 100;
}
svg {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}
.textTime {
  fill: #f4f4f4;
  text-anchor: middle;
  alignment-baseline: middle;
  font-size: 1.5rem;
  font-weight: 100;
}
.outerRing {
  fill: none;
  stroke: #f4f4f4;
  stroke-width: 2px;
  stroke-dasharray: 4px;
  opacity: .5;
}
.primCircle {
  fill: #252525;
  stroke: #f4f4f4;
  stroke-width: 10px;
}
.secCircle {
.........完整代码请登录后点击上方下载按钮下载查看
















			
			
				
			
	
网友评论0