css+js实现粉色可爱指针时钟显示时间走动动画效果代码
代码语言:html
所属分类:其他
代码描述:css+js实现粉色可爱指针时钟显示时间走动动画效果代码
代码标签: css js 粉色 可爱 指针 时钟 走动 动画 时间
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { margin: 0; padding: 0; box-sizing: border-box; } .back-container, .small-contanier, .clock-contanier { width: 100%; height: 100%; } .container { position: relative; width: 100vw; height: 100vh; background: linear-gradient(63.24deg, rgba(188, 78, 156, 0.1) 0%, rgba(248, 7, 89, 0.7) 104.28%); overflow: hidden; } .container .back-container .back-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 297px; height: 297px; background: radial-gradient(50% 50% at 50% 50%, rgba(128, 0, 128, 0.6) 40.1%, rgba(255, 192, 203, 0.3) 81.25%); z-index: -10; opacity: 80%; border-radius: 50%; } .container .small-contanier .small-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 207.65px; height: 208.63px; background: linear-gradient(217.94deg, rgba(255, 255, 255, 0.1) 17.27%, rgba(255, 255, 255, 0.6) 92.62%); box-shadow: -5px 20px 20px 5px rgba(48, 48, 48, 0.05); mix-blend-mode: overlay; z-index: 10; border-radius: 50%; } .container .small-contanier .small-circle::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 9px; height: 9px; background-color: #ffffff; border-radius: 50%; z-index: 14; } .container .small-contanier .small-circle .hand-container { position: relative; width: 100%; height: 100%; } .container .small-contanier .small-circle .hand-container .seconds { position: absolute; bottom: 50%; left: 50%; border-radius: 20%; transform-origin: bottom; backdrop-filter: blur(10px); width: 3.5px; height: 70%; background-color: red; z-index: 11; } .container .small-contanier .small-circle .hand-container .minutes { position: absolute; bottom: 50%; left: 50%; border-radius: 20%; transform-origin: bottom; backdrop-filter: blur(10px); width: 4.5px; height: 55%; background-color: white; z-index: 12; } .container .small-contanier .small-cir.........完整代码请登录后点击上方下载按钮下载查看
网友评论0