js+css实现炫酷指针壁挂时钟显示当前时间走动效果代码
代码语言:html
所属分类:布局界面
代码描述:js+css实现炫酷指针壁挂时钟显示当前时间走动效果代码
代码标签: js css 炫酷 指针 壁挂 时钟 显示 当前 时间 走动
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> *{ margin:0; padding:0; box-sizing:border-box; font-family: 'Poppins', sans-serif; } body{ display:flex; justify-content:center; align-items:center; min-height: 100vh; background: #acbaca; } .clock{ position: relative; width: 300px; height: 300px; background: #c9d5e0; display: flex; align-items: center; justify-content: center; border-radius: 50px; box-shadow: 30px 30px 30px -10px rgba(0,0,0,0.15), inset 15px 15px 10px rgba(255,255,255,0.75), -15px -15px 35px rgba(255,255,255,0.55), inset -1px -1px 10px rgba(0,0,0,0.2); } .clock::before{ content: ''; position: absolute; width: 4px; height: 4px; background: #e91e63; border-radius: 50%; z-index: 1000; box-shadow: 0 0 0 1px #e91e63, 0 0 0 3px #fff, 0 0 5px 5px rgba(0,0,0,0.15); } .clock .numbers{ position: absolute; inset:35px; background: #152b4a; border-radius: 50%; box-shadow: 5px 5px 15px #152b4a66, inset 5px 5px 5px rgba(255,255,255,0.55), -6px -6px 10px rgba(255,255,255,1); } .clock .numbers span{ position: absolute; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0