css西瓜时钟效果代码
代码语言:html
所属分类:布局界面
代码描述:css西瓜时钟效果代码
代码标签: 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap'); *, *::after, *::before{ margin: 0; padding: 0; box-sizing: border-box; } html{ font-size: 62.5%; } body{ width: 100%; min-height: 100vh; background-color: #FFE6E6; font-family: 'Poppins', sans-serif; display: flex; justify-content: center; align-items: center; } .container{ width: 32rem; height: 32rem; /* background-color: #fff; */ display: flex; justify-content: center; align-items: center; position: relative; background: rgb(238,238,238); background: radial-gradient(circle, rgba(238,238,238,1) 0%, rgba(210,228,214,1) 37%, rgba(179,217,187,1) 57%, rgba(162,211,172,1) 89%, rgba(116,196,132,1) 100%); border-radius: 50%; padding: 20px; box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px; } .clock{ border-radius: 50%; height: 100%; width: 100%; position: relative; background: radial-gradient(circle, rgba(221,6,24,0.1) 0%, rgba(231,55,79,1) 0%, rgba(246,126,158,1) 71%, rgba(247,130,163,1) 91%, rgba(254,164,201,1) 100%); overflow: hidden; } .hand{ position: absolute; left: 0; right: 0; margin: auto; transform-origin: bottom; transition: all .5 ease-in-out ; z-index: 5; border-top-left-radius: 50%; border-top-right-radius: 50%; } .center{ position: abso.........完整代码请登录后点击上方下载按钮下载查看
网友评论0