gsap实现大气生物学医学落地页ui代码

代码语言:html

所属分类:布局界面

代码描述:gsap实现大气生物学医学落地页ui代码

代码标签: gsap 大气 生物学 医学 落地页 ui 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">

  <link rel="stylesheet" href="https://use.typekit.net/kta3ngw.css">
  
  
  
<style>
:root {
  --bg: #ececef;
  --bg-2: #e4e4e8;
  --text: #0a0a0c;
  --text-2: #2b2b30;
  --mute: #74747c;
  --mute-2: #9a9aa3;
  --card: #ffffff;
  --card-soft: #f7f7fa;
  --line: rgba(0, 0, 0, 0.06);
  --line-2: rgba(0, 0, 0, 0.1);
  --accent: #1a8aff;
  --teal: #2cb7b3;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif, system-ui;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.45;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
      circle at 1px 1px,
      rgba(15, 15, 20, 0.045) 1px,
      transparent 1.4px
    )
    0 0/22px 22px;
  opacity: 0.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.display {
  font-family: var(--font);
  font-weight: 900;
}

/* ════════════════════════════════════════════════
     PAGE WRAPPER
     ════════════════════════════════════════════════ */
.page {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px clamp(20px, 3vw, 40px) 60px;
  min-height: 100vh;
}

/* ════════════════════════════════════════════════
     WAVE PNG (the hero visual)
     ════════════════════════════════════════════════ */
.wave-wrap {
  position: absolute;
  inset: -60px -180px auto 0;
  top: -60px;
  right: -160px;
  z-index: 2;
  pointer-events: none;
  width: min(1300px, 92vw);
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(20, 80, 160, 0.1));
  will-change: transform;
}

.wave-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center;
}

/* Soft pastel blob behind the wave to deepen the gradient */
.wave-glow {
  position: absolute;
  top: 0;
  right: -120px;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(
    closest-side,
    rgba(40, 190, 255, 0.35),
    transparent 70%
  );
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
}

.wave-glow.b {
  top: 35%;
  right: 10%;
  width: 40%;
  background: radial-gradient(
    closest-side,
    rgba(70, 230, 180, 0.3),
    transparent 70%
  );
}

/* ════════════════════════════════════════════════
     GIANT BACKGROUND TEXT
     ════════════════════════════════════════════════ */
.bg-text {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-family: var(--font);
  font-size: clamp(140px, 22vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(15, 15, 25, 0.08);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

/* ════════════════════════════════════════════════
     HEADER (pill nav)
     ════════════════════════════════════════════════ */
.header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 28px rgba(20, 40, 80, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--text);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.18);
}

.logo-mark svg {
  width: 18px;
  height: 18px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .a {
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.logo-text .b {
  font-size: 11px;
  color: var(--mute);
  margin-top: 3px;
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.nav-pill svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.nav-pill:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.nav-pill.active {
  background: var(--text);
  color: white;
}

.nav-pill.active svg {
  opacity: 0.9;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 22px;
  background: whit.........完整代码请登录后点击上方下载按钮下载查看

网友评论0