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(248, 248, 248, 1) 45%,
		rgba(248, 248, 248, 1), rgba(248, 248, 248, 1) 81%, 
		rgba(153, 153, 153, 1), rgba(153, 153, 153, 1),
		rgba(171, 173, 245, 1), rgba(137, 164, 190, 1), rgba(135, 186, 189, 1), rgba(131, 222, 128, 1), rgba(189, 197, 121, 1), rgba(229, 180, 120, 1), rgba(251, 154, 113, 1), 
		rgba(153, 153, 153, 1) 95%, rgba(153, 153, 153, 1),
		rgba(248, 248, 248, 1), rgba(248, 248, 248, 1)
	) border-box;
	/* 
	conic-gradient(
		from 343deg at 50% 50%, 
		rgba(231, 224, 229, 1), rgba(231, 224, 229, 1), rgba(231, 224, 229, 1),
		rgba(230, 213, 146, 1), rgba(200, 158, 103, 1), rgba(150, 133, 158, 1), 
		rgba(62, 60, 59, 1), rgba(62, 60, 59, 1), rgba(62, 60, 59, 1), rgba(62, 60, 59, 1), 
		rgba(150, 133, 158, 1), rgba(207, 170, 115, 1), rgba(230, 213, 146, 1), 
		rgba(249, 249, 237, 1), rgba(249, 249, 237, 1), rgba(249, 249, 237, 1), rgba(249, 249, 237, 1),
		rgba(165, 182, 205, 1), rgba(134, 138, 161, 1),
		rgba(225, 226, 227, 1), rgba(225, 226, 227, 1), 
		rgba(204, 209, 136, 1), rgba(177, 170, 142, 1), rgba(204, 187, 126, 1), 
		rgba(188, 140, 101, 1), rgba(147, 73, 114, 1), rgba(140, 107, 150, 1), 
		rgba(68, 66, 69, 1), rgba(68, 66, 69, 1), rgba(138, 122, 157, 1), 
		rgba(144, 79, 118, 1), rgba(207, 196, 130, 1), rgba(227, 221, 246, 1), 
		rgba(225, 230, 198, 1), rgba(128, 160, 196, 1), rgba(128, 160, 196, 1),
		rgba(217, 218, 198, 1), rgba(231, 224, 229, 1)
	) border-box;
	*/
	border: 1.3px solid transparent;
	backgr.........完整代码请登录后点击上方下载按钮下载查看

网友评论0