gsap实现炫酷团队人物相册落地页ui代码
代码语言:html
所属分类:布局界面
代码描述:gsap实现炫酷团队人物相册落地页ui代码
代码标签: gsap 炫酷 团队 人物 相册 落地页 ui 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
:root {
--bg: #f5efe2;
--bg-2: #ede6d6;
--ink: #141416;
--ink-soft: #2b2b30;
--mute: #8b847a;
--line: #dad2bf;
--ghost: #c5bfae; /* faded "big results" gray */
--orange-1: #d9351f;
--orange-2: #e85a2b;
--orange-3: #f58b4e;
--orange-4: #fdc68a;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
background: var(--bg);
color: var(--ink);
font-family: "DM Sans", system-ui, sans-serif;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}
body {
background: radial-gradient(
120% 70% at 50% 0%,
#f8f3e7 0%,
#f2ead6 60%,
#e9dec3 100%
);
min-height: 100vh;
}
/* Grain */
.grain {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 100;
opacity: 0.06;
mix-blend-mode: multiply;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
/* ============ NAV ============ */
.nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 50;
padding: 28px 48px;
display: flex;
align-items: center;
justify-content: space-between;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
font-weight: 700;
letter-spacing: -0.02em;
font-size: 16px;
}
.logo-dot {
width: 20px;
height: 20px;
border-radius: 50%;
background: linear-gradient(180deg, var(--orange-1), var(--orange-4));
box-shadow: 0 4px 8px -2px rgba(220, 60, 30, 0.4),
inset 0 1px 0 rgba(255, 255, 255, 0.4),
inset 0 -2px 3px rgba(120, 20, 0, 0.3);
}
.nav-links {
list-style: none;
display: flex;
gap: 30px;
}
.nav-links a {
color: var(--ink-soft);
text-decoration: none;
font-size: 14px;
font-weight: 500;
position: relative;
transition: color 0.3s;
}
.nav-links a:hover {
color: var(--ink);
}
.nav-links a::after {
content: "";
position: absolute;
left: 0;
bottom: -3px;
width: 0;
height: 1.5px;
background: currentColor;
border-radius: 2px;
transition: width 0.4s cubic-bezier(0.7, 0, 0.2, 1);
}
.nav-links a:hover::after {
width: 100%;
}
.nav-cta {
background: var(--ink);
color: #fafaf7;
border: none;
padding: 12px 22px;
border-radius: 999px;
font-family: inherit;
font-size: 13px;
font-weight: 600;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.4),
0 4px 8px -2px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12),
inset 0 -2px 4px rgba(0, 0, 0, 0.4);
transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1);
}
.nav-cta:hover {
transform: translateY(-2px);
}
/* ============ HERO ============ */
.hero {
position: relative;
min-height: 100vh;
padding: 130px 32px 60px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-inde.........完整代码请登录后点击上方下载按钮下载查看















网友评论0