css布局实现一个闹钟动画效果
代码语言:html
所属分类:动画
代码描述:css布局实现一个闹钟动画效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
/*************
background
***********/
body {
margin: 0;
background-color: #e46b4c;
padding-top: 170px;
}
.table {
background-color: #2B3948;
height: 50vh;
}
.clock {
margin: 0 auto;
position: relative;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #fff;
width: 200px;
height: 200px;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
-webkit-border: #2B3948 solid 15px;
-moz-border: #2B3948 solid 15px;
border: #2B3948 solid 15px;
}
/*************
time-ticks
***********/
.hours {
width: 8px;
height: 3px;
background-color: #2B3948;
position: absolute;
margin: auto 0;
}
.hours2 {
width: 3px;
height: 8px;
background-color: #2B3948;
position: absolute;
margin: 0 auto;
}
.top {
width: 3px;
height: 8px;
background-color: #2B3948;
position: absolute;
margin: 0 auto;
left: 0;
right: 0;
}
.bottom {
width: 3px;
height: 8px;
background-color: #2B3948;
position: absolute;
margin: 0 auto;
bottom: 0;
left: 0;
right: 0;
}
.left {
width: 8px;
height: 3px;
background-color: #2B3948;
position: absolute;
margin: auto 0;
top: 0;
bottom: 0;
left: 0;
}
.right {
width: 8px;
height: 3px;
b.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0