css实现三种发光下拉选择框美化效果代码
代码语言:html
所属分类:表单美化
代码描述:css实现三种发光下拉选择框美化效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@font-face {
font-family: "Mona Sans";
src: url("https://assets.codepen.io/64/Mona-Sans.woff2") format("woff2 supports variations"), url("https://assets.codepen.io/64/Mona-Sans.woff2") format("woff2-variations");
font-weight: 100 1000;
}
@layer properties {
@property --max-height {
syntax: "<number>";
inherits: true;
initial-value: 0;
}
@property --bg-x {
syntax: "<number>";
inherits: true;
initial-value: 50;
}
@property --bg-y {
syntax: "<number>";
inherits: true;
initial-value: -200;
}
@property --scale {
syntax: "<number>";
inherits: true;
initial-value: 1;
}
@property --accent-color-hue {
syntax: "<number>";
inherits: true;
initial-value: 0;
}
@property --accent-color-hue {
syntax: "<number>";
inherits: true;
initial-value: 0;
}
@property --item-y {
syntax: "<number>";
inherits: true;
initial-value: 0;
}
@property --item-opacity {
syntax: "<number>";
inherits: true;
initial-value: 0;
}
@property --accent-color {
syntax: "<color>";
inherits: true;
initial-value: hsl(calc(var(--accent-color-hue)*1deg), 100%, 58%);
}
@property --radial-bg-color {
syntax: "<color>";
inherits: true;
initial-value: black;
}
}
:root {
--background-color: hsl(222deg 17% 14%);
--dark-color: hsl(227deg 37% 3%);
--light-color: hsl(211deg 23% 51%);
--accent-color-hue: 219;
--accent-color: hsl(calc(var(--accent-color-hue)*1deg) 100% 58%);
--radial-bg-color: var(--dark-color);
--max-.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0