css+js实现带指针罗马数学数字时钟显示时间走动效果带啊
代码语言:html
所属分类:其他
代码描述:css+js实现带指针罗马数学数字时钟显示时间走动效果带啊
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
.clock {
border-radius: 50%;
width: 400px;
height: 400px;
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.clock::before {
content: '';
width: 308px;
height: 308px;
background: radial-gradient(at -5% -5%, rgba(255, 255, 255, 0.2) 40%, rgba(255, 255, 255, 0) 40%), radial-gradient(at center, #555, #555 4px, rgba(85, 85, 85, 0) 5px);
border-radius: 50%;
background-size: 280%, 100%;
z-index: 1;
position: absolute;
}
.clock:after {
content: '';
width: 400px;
height: 400px;
position: absolute;
background: radial-gradient(at center, #ddd 146px, #ccc 156px, rgba(221, 221, 221, 0) 157px), radial-gradient(at center, #999, #333, #999, #333, #999, #333, #999, #333, #999, #333, #999, #333, #999, #333, #999, #333, #999, #333, #999, #333, #999, .........完整代码请登录后点击上方下载按钮下载查看
网友评论0