js模仿苹果手机秒表计时效果代码
代码语言:html
所属分类:动画
代码描述:js模仿苹果手机秒表计时效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
min-height: 100vh;
background: rgb(210, 252, 243);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
font-weight: 100;
}
.container {
height: 620px;
width: 300px;
background: white;
position: relative;
border-radius: 50px;
box-shadow: 0px 2px 20px rgba(19, 19, 19, 0.2);
}
.container-upper {
position: absolute;
height: 5px;
width: 70px;
top: 40px;
background: #111111;
border-radius: 10px;
left: 50%;
transform: translateX(-50%);
}
.container-upper:before {
position: absolute;
content: "";
height: 9px;
width: 9px;
left: -20px;
background: #111111;
border-radius: 50%;
top: 50%;
transform:.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0