jquery实现手表转动显示时间效果
代码语言:html
所属分类:动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> Rolex Oyster Perpetual Submariner - pure HTML/CSS illustration</title>
<link rel="stylesheet" href="http://repo.bfw.wiki/bfwrepo/css/reset.min.css">
<style>
/*
CSS isn't organized very well
*/
/* Text */
@import url("https://fonts.googleapis.com/css?family=Roboto:300i,400&display=swap");
/* Numerals */
@import url("https://fonts.googleapis.com/css?family=Chathura:800&display=swap");
/* Date */
@import url("https://fonts.googleapis.com/css?family=Krona+One&display=swap");
/* Rolex */
@import url("https://fonts.googleapis.com/css?family=Rhodium+Libre&display=swap");
/* Swiss Made */
@import url("https://fonts.googleapis.com/css?family=Montserrat:600&display=swap");
*, *:before, *:after {
box-sizing: border-box;
}
html, body {
height: 100%;
width: 100%;
}
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
-webkit-transform: scale(0.7);
transform: scale(0.7);
}
/* Not sure where this is used */
i:before, i:after, .rolex:before, .rolex:after, .rolex .crown:before, .rolex .crown:after, .bezel .bezel-gradient:after, .bezel .bezel-gradient:before, .bezel-decor:before, .bezel-decor:after, .crystal:before, .crystal:after, .face:after, .face .sec:nth-of-type(1):after, .face .sec:nth-of-type(14):after, .content-upper .logo:before, .content-upper .logo:after, .content-upper .logo .logo-left:before,
.content-upper .logo .logo-right:before, .marker-triangle:before, .marker-triangle:after, .marker-square:before, .marker-square:after, .date:after, .hand-sec:after, .hand-sec:before, .hand-min:before, .hand-min span:after, .hand-hour:after, .hand-hour:before, .hand-hour span:before, .hand-hour span:after, .hand-hour span .hour-decor:after, .hand-hour span .hour-decor:before {
content: '';
display: block;
position: absolute;
}
/* Circle marker details */
.bezel-decor:after, .markers-circle:before, .markers-circle:after {
width: 26px;
height: 26px;
border-radius: 100%;
background: #fff;
box-shadow: inset 1px 1px 1px 0 #666, inset 2px 2px 7px 0 #aaa, 1px 1px 1px 0 #222;
border: 2px solid #ccc;
}
.rolex, .rolex .band, .bezel .bezel-gradient, .bez-num, .bez-num li, .crystal, .crystal:before, .crystal:after, .face, .face:after, .marker-square, .hand-sec, .hand-min, .hand-hour {
top: 0;
bottom: 0;
right: 0;
left: 0;
margin: auto;
}
/* .bez, .sec */
i {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
margin: auto;
}
i:before, i:after {
height: inherit;
width: inherit;
border-radius: inherit;
-webkit-transform: rotateZ(calc(90deg));
transform: rotateZ(calc(90deg));
}
/* ***********************
Start main code
*********************** */
/* Band and crown */
.rolex {
position: absolute;
width: 430px;
height: 430px;
/* Left and right container */
}
.rolex:before, .rolex:after {
border-top: 210px solid transparent;
border-bottom: 210px solid transparent;
height: 500px;
z-index: -1;
top: -35px;
}
.rolex:before {
border-right: .........完整代码请登录后点击上方下载按钮下载查看
















网友评论0