div+css实现金色vip不锈钢按钮背景变化效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css实现金色vip不锈钢按钮背景变化效果代码
代码标签: div css 金色 vip 不锈钢 按钮 背景 变化
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> :root { --defaultFont: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, SF Pro, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; --garageWhite: hsla(150deg 5.26% 92.55% / 100%); --darkText: hsla(0deg 0% 0.78% / 75%); --darkText: hsla(0deg 0% 30.2% / 100%); } h1 { font-size: 53.75px; font-size: 2.986rem; } h2 { font-size: 44.79px; font-size: 2.488rem; } h3 { font-size: 37.32px; font-size: 2.074rem; } h4 { font-size: 31.1px; font-size: 1.728rem; } h5 { font-size: 25.92px; font-size: 1.44rem; } h6 { font-size: 21.6px; font-size: 1.2rem; } p { font-size: 18px; font-size: 1rem; } small { font-size: 15px; font-size: 0.833rem; } *, *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; text-rendering: geometricprecision; } [type=submit], [type=reset], button, html [type=button] { -webkit-appearance: button; text-transform: none; } html, body { margin: 0; width: 100%; height: 100%; font-family: var(--defaultFont); font-family: ui-sans-serif, system-ui, SF Pro, Segoe UI, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-family: system-ui, sans-serif; font-weight: 300; font-size: 18px; line-height: 1.6; letter-spacing: 0.016em; } body { position: relative; width: 100vw; height: 100vh; text-rendering: geometricprecision; color: var(--garageWhite); color: rgb(48, 42, 44); display: grid; place-items: center; transition: all 40ms linear; overflow-x: hidden; background: hsla(228deg, 12.2%, 8.04%, 1); background-color: hsla(210deg, 30%, 8%, 1); } .container { --borderRadius: 0.99em; --borderRadiusBefore: 1em; position: relative; margin: 20px auto; padding: 0px; } .container-item { position: absolute; padding: .5em 1.2em; width: max-content; border-radius: var(--borderRadius); top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient( circle at 5% 0%, rgb(235 236 238 / 100%), rgb(203 204 207 / 100%) 30%, rgb(152 152 153 / 100%) 70% ) padding-box, /* METALLIC EDGE BORDER */ conic-gradient( from 133deg at 50% 50%, rgba(248, 248, 248, 1), rgba(248, 248, 248, 1) 31%, rgba(153, 153, 153, 1), rgba(153, 153, 153, 1), rgba(136, 136, 160, 1), rgba(124, 142, 160, 1), rgba(114, 155, 157, 1), rgba(124, 165, 123, 1), rgba(158, 163, 121, 1), rgba(179, 154, 123, 1), rgba(184, 144, 128, 1), rgba(153, 153, 153, 1), rgba(153, 153, 153, 1), rgba(248, 248, 248, 1), rgba(24.........完整代码请登录后点击上方下载按钮下载查看
网友评论0