css+div实现apple watch手表布局效果代码

代码语言:html

所属分类:布局界面

代码描述:css+div实现apple watch手表布局效果代码

代码标签: css div apple watch 手表 布局

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" />

     <style>
body{
 
       
   display: flex;
   margin: 200px ;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
button {
  font-family: inherit;
}

.watch {
  position: relative;
  transform: scale(0.7);
}
.watch::after,
.watch::before {
  content: "";
  width: 10rem;
  height: 200px;
  background: radial-gradient(circle at 200px, rgb(0, 0, 0), rgb(48, 48, 48));
  box-shadow: inset 0px -10px 18px #ffffffb9, 10px 0px 30px #00000071;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0%);
}
.watch::before {
  content: "";
  width: 10rem;
  height: 200px;
  background: radial-gradient(circle at 200px, rgb(0, 0, 0), rgb(48, 48, 48));
  box-shadow: inset 0px 10px 18px #ffffffb9, 10px 0px 30px #00000071;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -100%);
}
.dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 140%);
  padding: 3px;
  z-index: 20;
}
.dots .dot {
  width: 17px;
  aspect-ratio: 1;
  background-color: #000000;
  border-radius: 100px;
  display: block;
  margin-bottom: 50px;
  box-shadow: inset 2px 0 5px #ffffff48;
}
.frame {
  background: #.........完整代码请登录后点击上方下载按钮下载查看

网友评论0