jquery+css实现一个指针时钟效果代码
代码语言:html
所属分类:其他
代码描述:jquery+css实现一个指针时钟效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <style>
        @import url("https://fonts.googleapis.com/css?family=Roboto:400,400i,700");
        
        body {
        	margin: 0;
        }
        
        .clock {
        	position: absolute;
        	width: 300px;
        	height: 300px;
        	left: calc(50% - 150px);
        	top: calc(50% - 150px);
        	background-color: white;
        	border-radius: 50%;
        	border: 8px solid black;
        	box-shadow: 0px 0px 8px 6px rgba(0,0,0,0.2);
        }
        
        .hour-hand {
        	position: absolute;
        	height: 100px;
        	width: 7px;
        	background-color: black;
        	left: calc(50% - 3.5px);
        	bottom: 50%;
        	transform-origin: center 100%;
        	z-index: 30;
        }
        
        .hour-hand::after {
        	content: "";
        	width: 7px;
        	height: 10px;
        	background-color: black;
        	position: absolute;
        	bottom: -10px;
        	z-index: 30;
        }
        
        .minute-hand .........完整代码请登录后点击上方下载按钮下载查看



 
				












 
			 
			 
				 
			 
	
网友评论0