css preserve-3d立体效果代码
代码语言:html
所属分类:布局界面
代码描述:css preserve-3d立体效果代码
代码标签: css preserve-3d 立体
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Nunito:wght@700&display=swap'> <style> :root { --transform-style: preserve-3d; } * { transform-style: var(--transform-style); } body { display: flex; justify-content: center; align-items: center; flex-direction: column; height: 100vh; overflow: hidden; background: #000; font-family: 'Nunito', sans-serif; color: #fff; perspective: 500px; } .panel { width: 200px; height: 200px; border: 12px solid #26f; box-sizing: border-box; font-size: 52.5px; line-height: 1.117; transform: rotateY(50deg); } .text { transform: rotateY(-50deg); } .ui { position: relative; margin-top: 50px; font-size: 30px; line-height: 1.4; } .input { width: 100px; font-family: 'Nunito', sans-serif; font-size: 30px; } </style> </head> &.........完整代码请登录后点击上方下载按钮下载查看
网友评论0