14 个滚动模式

滚动实验室

滚动各自的舞台,或使用播放控件查看效果。

随滚动变速的跑马灯

在舞台内滚动,控制两行内容的方向和速度。悬停可暂停。

代码与 AI 提示词
.studio {
  --stage: #edf1f8;
  --stage-border: #c7d1e4;
  --stage-ink: #172740;
  --stage-muted: #455976;
  --stage-tile: #ffffff;
  --stage-accent: #254fc2;
  --stage-accent-wash: #dce6ff;
  --stage-green: #14765d;
  --stage-ease: cubic-bezier(.23, 1, .32, 1);
  color: var(--stage-ink);
  background: var(--stage-tile);
  border-radius: inherit;
}
[data-theme="dark"] .studio, [data-stage="dark"].studio {
  --stage: #141a27;
  --stage-border: #35425e;
  --stage-ink: #f1f5ff;
  --stage-muted: #aebbd5;
  --stage-tile: #202a3d;
  --stage-accent: #a5baff;
  --stage-accent-wash: #2b3b64;
  --stage-green: #70dfbb;
}
.studio-stage {
  min-height: 164px;
  display: grid;
  place-items: center;
  padding: 13px;
  isolation: isolate;
  overflow: clip;
  border-radius: 7px;
  background: radial-gradient(circle, color-mix(in srgb, var(--stage-accent), transparent 76%) .65px, transparent 1px) center / 13px 13px, var(--stage);
}
.studio:has(.studio-controls) .studio-stage { border-end-start-radius: 0; border-end-end-radius: 0; }
.studio-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  min-height: 49px;
  padding: 6px 12px;
  border-top: 1px solid var(--stage-border);
}
.studio-controls label {
  min-width: 165px;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  font-size: .74rem;
}
.studio-controls output { color: var(--stage-muted); font: .73rem ui-monospace, monospace; }
.studio-controls input { grid-column: 1/-1; margin: 0; width: 100%; accent-color: var(--stage-accent); }
.studio-action, .studio-cta {
  padding: 5px 10px;
  min-height: 34px;
  border-radius: 7px;
  border: 1px solid var(--stage-border);
  background: var(--stage-tile);
  color: var(--stage-ink);
  font: 600 .78rem/1.3 system-ui, sans-serif;
  cursor: pointer;
  transition: transform 145ms var(--stage-ease), background-color 145ms;
}
.studio :is(button, input, [tabindex]):focus-visible { outline: 2px solid var(--stage-accent); outline-offset: 2px; }
.studio-action:active, .studio-cta:active { transform: scale(.97); }
.studio-cta { background: var(--stage-accent); border-color: transparent; color: var(--stage); }
.studio-object {
  position: relative;
  width: min(250px, 100%);
  display: grid;
  gap: 5px;
  justify-items: start;
  text-align: start;
  padding: 14px 17px;
  color: var(--stage-ink);
  background: var(--stage-tile);
  border: 1px solid var(--stage-border);
  border-radius: 12px;
  box-shadow: 0 9px 20px color-mix(in srgb, #071639, transparent 88%);
}
.studio-object strong { font-size: 1.24rem; line-height: 1.15; letter-spacing: -.035em; }
.studio-object small, .studio-object > span:not(.studio-chip) { color: var(--stage-muted); font-size: .72rem; }
.studio-live { display: inline-block; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--stage-green); vertical-align: .12em; }
.studio-scroll {
  width: min(100%, 350px);
  height: 136px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--stage-border) var(--stage);
  border: 1px solid var(--stage-border);
  border-radius: 8px;
  background: var(--stage-tile);
}
.studio-scroll-story { height: 285px; }
.studio-pin { position: sticky; top: 0; height: 132px; display: grid; place-items: center; padding: 10px; }
.studio:not([data-visible="true"]) * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .studio *, .studio *::before, .studio *::after { animation: none !important; transition: none !important; }
}

/* specimen */
.studio-marquee { width: 100%; height: 136px; overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: thin; }
.studio-marquee > div:first-child { position: sticky; top: 0; padding-block: 20px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.studio-marquee [data-track] { width: max-content; display: flex; color: var(--stage-accent); font-size: clamp(1.25rem, 3.5vw, 2rem); font-weight: 600; white-space: pre; }
.studio-marquee [data-track] + [data-track] { color: var(--stage-muted); }
.studio-scroll-spacer { height: 260px; }

滚动逐词高亮

滚动舞台,逐词高亮句子。

好的界面让下一步一目了然。

代码与 AI 提示词
.studio {
  --stage: #edf1f8;
  --stage-border: #c7d1e4;
  --stage-ink: #172740;
  --stage-muted: #455976;
  --stage-tile: #ffffff;
  --stage-accent: #254fc2;
  --stage-accent-wash: #dce6ff;
  --stage-green: #14765d;
  --stage-ease: cubic-bezier(.23, 1, .32, 1);
  color: var(--stage-ink);
  background: var(--stage-tile);
  border-radius: inherit;
}
[data-theme="dark"] .studio, [data-stage="dark"].studio {
  --stage: #141a27;
  --stage-border: #35425e;
  --stage-ink: #f1f5ff;
  --stage-muted: #aebbd5;
  --stage-tile: #202a3d;
  --stage-accent: #a5baff;
  --stage-accent-wash: #2b3b64;
  --stage-green: #70dfbb;
}
.studio-stage {
  min-height: 164px;
  display: grid;
  place-items: center;
  padding: 13px;
  isolation: isolate;
  overflow: clip;
  border-radius: 7px;
  background: radial-gradient(circle, color-mix(in srgb, var(--stage-accent), transparent 76%) .65px, transparent 1px) center / 13px 13px, var(--stage);
}
.studio:has(.studio-controls) .studio-stage { border-end-start-radius: 0; border-end-end-radius: 0; }
.studio-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  min-height: 49px;
  padding: 6px 12px;
  border-top: 1px solid var(--stage-border);
}
.studio-controls label {
  min-width: 165px;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  font-size: .74rem;
}
.studio-controls output { color: var(--stage-muted); font: .73rem ui-monospace, monospace; }
.studio-controls input { grid-column: 1/-1; margin: 0; width: 100%; accent-color: var(--stage-accent); }
.studio-action, .studio-cta {
  padding: 5px 10px;
  min-height: 34px;
  border-radius: 7px;
  border: 1px solid var(--stage-border);
  background: var(--stage-tile);
  color: var(--stage-ink);
  font: 600 .78rem/1.3 system-ui, sans-serif;
  cursor: pointer;
  transition: transform 145ms var(--stage-ease), background-color 145ms;
}
.studio :is(button, input, [tabindex]):focus-visible { outline: 2px solid var(--stage-accent); outline-offset: 2px; }
.studio-action:active, .studio-cta:active { transform: scale(.97); }
.studio-cta { background: var(--stage-accent); border-color: transparent; color: var(--stage); }
.studio-object {
  position: relative;
  width: min(250px, 100%);
  display: grid;
  gap: 5px;
  justify-items: start;
  text-align: start;
  padding: 14px 17px;
  color: var(--stage-ink);
  background: var(--stage-tile);
  border: 1px solid var(--stage-border);
  border-radius: 12px;
  box-shadow: 0 9px 20px color-mix(in srgb, #071639, transparent 88%);
}
.studio-object strong { font-size: 1.24rem; line-height: 1.15; letter-spacing: -.035em; }
.studio-object small, .studio-object > span:not(.studio-chip) { color: var(--stage-muted); font-size: .72rem; }
.studio-live { display: inline-block; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--stage-green); vertical-align: .12em; }
.studio-scroll {
  width: min(100%, 350px);
  height: 136px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--stage-border) var(--stage);
  border: 1px solid var(--stage-border);
  border-radius: 8px;
  background: var(--stage-tile);
}
.studio-scroll-story { height: 285px; }
.studio-pin { position: sticky; top: 0; height: 132px; display: grid; place-items: center; padding: 10px; }
.studio:not([data-visible="true"]) * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .studio *, .studio *::before, .studio *::after { animation: none !important; transition: none !important; }
}

/* specimen */
.studio-passage { margin: 0; max-width: 19ch; color: var(--stage-ink); font-size: 1.35rem; font-weight: 600; line-height: 1.28; text-align: center; }
.studio-passage span[data-pending] { color: var(--stage-muted); font-weight: 400; }

滚动透视倾斜

滚动让仪表盘从倾斜视角逐渐放平。

流量概览8,402
代码与 AI 提示词
.studio {
  --stage: #edf1f8;
  --stage-border: #c7d1e4;
  --stage-ink: #172740;
  --stage-muted: #455976;
  --stage-tile: #ffffff;
  --stage-accent: #254fc2;
  --stage-accent-wash: #dce6ff;
  --stage-green: #14765d;
  --stage-ease: cubic-bezier(.23, 1, .32, 1);
  color: var(--stage-ink);
  background: var(--stage-tile);
  border-radius: inherit;
}
[data-theme="dark"] .studio, [data-stage="dark"].studio {
  --stage: #141a27;
  --stage-border: #35425e;
  --stage-ink: #f1f5ff;
  --stage-muted: #aebbd5;
  --stage-tile: #202a3d;
  --stage-accent: #a5baff;
  --stage-accent-wash: #2b3b64;
  --stage-green: #70dfbb;
}
.studio-stage {
  min-height: 164px;
  display: grid;
  place-items: center;
  padding: 13px;
  isolation: isolate;
  overflow: clip;
  border-radius: 7px;
  background: radial-gradient(circle, color-mix(in srgb, var(--stage-accent), transparent 76%) .65px, transparent 1px) center / 13px 13px, var(--stage);
}
.studio:has(.studio-controls) .studio-stage { border-end-start-radius: 0; border-end-end-radius: 0; }
.studio-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  min-height: 49px;
  padding: 6px 12px;
  border-top: 1px solid var(--stage-border);
}
.studio-controls label {
  min-width: 165px;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  font-size: .74rem;
}
.studio-controls output { color: var(--stage-muted); font: .73rem ui-monospace, monospace; }
.studio-controls input { grid-column: 1/-1; margin: 0; width: 100%; accent-color: var(--stage-accent); }
.studio-action, .studio-cta {
  padding: 5px 10px;
  min-height: 34px;
  border-radius: 7px;
  border: 1px solid var(--stage-border);
  background: var(--stage-tile);
  color: var(--stage-ink);
  font: 600 .78rem/1.3 system-ui, sans-serif;
  cursor: pointer;
  transition: transform 145ms var(--stage-ease), background-color 145ms;
}
.studio :is(button, input, [tabindex]):focus-visible { outline: 2px solid var(--stage-accent); outline-offset: 2px; }
.studio-action:active, .studio-cta:active { transform: scale(.97); }
.studio-cta { background: var(--stage-accent); border-color: transparent; color: var(--stage); }
.studio-object {
  position: relative;
  width: min(250px, 100%);
  display: grid;
  gap: 5px;
  justify-items: start;
  text-align: start;
  padding: 14px 17px;
  color: var(--stage-ink);
  background: var(--stage-tile);
  border: 1px solid var(--stage-border);
  border-radius: 12px;
  box-shadow: 0 9px 20px color-mix(in srgb, #071639, transparent 88%);
}
.studio-object strong { font-size: 1.24rem; line-height: 1.15; letter-spacing: -.035em; }
.studio-object small, .studio-object > span:not(.studio-chip) { color: var(--stage-muted); font-size: .72rem; }
.studio-live { display: inline-block; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--stage-green); vertical-align: .12em; }
.studio-scroll {
  width: min(100%, 350px);
  height: 136px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--stage-border) var(--stage);
  border: 1px solid var(--stage-border);
  border-radius: 8px;
  background: var(--stage-tile);
}
.studio-scroll-story { height: 285px; }
.studio-pin { position: sticky; top: 0; height: 132px; display: grid; place-items: center; padding: 10px; }
.studio:not([data-visible="true"]) * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .studio *, .studio *::before, .studio *::after { animation: none !important; transition: none !important; }
}

/* specimen */
.studio-dashboard { height: 110px; max-width: 205px; padding: 9px 12px; gap: 2px; }
.studio-dashboard > div { display: flex; align-items: end; gap: 5px; width: 100%; height: 46px; }
.studio-dashboard i { flex: 1; height: var(--height); background: var(--stage-accent); border-radius: 3px 3px 0 0; opacity: .78; }

渐进模糊边缘

滚动列表并调整边缘的渐进模糊。

  • 新建工作区
  • 已接受邀请
  • 设计已发布
  • 令牌已同步
  • 已完成评审
  • 版本已恢复
  • 可以导出
代码与 AI 提示词
.studio {
  --stage: #edf1f8;
  --stage-border: #c7d1e4;
  --stage-ink: #172740;
  --stage-muted: #455976;
  --stage-tile: #ffffff;
  --stage-accent: #254fc2;
  --stage-accent-wash: #dce6ff;
  --stage-green: #14765d;
  --stage-ease: cubic-bezier(.23, 1, .32, 1);
  color: var(--stage-ink);
  background: var(--stage-tile);
  border-radius: inherit;
}
[data-theme="dark"] .studio, [data-stage="dark"].studio {
  --stage: #141a27;
  --stage-border: #35425e;
  --stage-ink: #f1f5ff;
  --stage-muted: #aebbd5;
  --stage-tile: #202a3d;
  --stage-accent: #a5baff;
  --stage-accent-wash: #2b3b64;
  --stage-green: #70dfbb;
}
.studio-stage {
  min-height: 164px;
  display: grid;
  place-items: center;
  padding: 13px;
  isolation: isolate;
  overflow: clip;
  border-radius: 7px;
  background: radial-gradient(circle, color-mix(in srgb, var(--stage-accent), transparent 76%) .65px, transparent 1px) center / 13px 13px, var(--stage);
}
.studio:has(.studio-controls) .studio-stage { border-end-start-radius: 0; border-end-end-radius: 0; }
.studio-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  min-height: 49px;
  padding: 6px 12px;
  border-top: 1px solid var(--stage-border);
}
.studio-controls label {
  min-width: 165px;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  font-size: .74rem;
}
.studio-controls output { color: var(--stage-muted); font: .73rem ui-monospace, monospace; }
.studio-controls input { grid-column: 1/-1; margin: 0; width: 100%; accent-color: var(--stage-accent); }
.studio-action, .studio-cta {
  padding: 5px 10px;
  min-height: 34px;
  border-radius: 7px;
  border: 1px solid var(--stage-border);
  background: var(--stage-tile);
  color: var(--stage-ink);
  font: 600 .78rem/1.3 system-ui, sans-serif;
  cursor: pointer;
  transition: transform 145ms var(--stage-ease), background-color 145ms;
}
.studio :is(button, input, [tabindex]):focus-visible { outline: 2px solid var(--stage-accent); outline-offset: 2px; }
.studio-action:active, .studio-cta:active { transform: scale(.97); }
.studio-cta { background: var(--stage-accent); border-color: transparent; color: var(--stage); }
.studio-object {
  position: relative;
  width: min(250px, 100%);
  display: grid;
  gap: 5px;
  justify-items: start;
  text-align: start;
  padding: 14px 17px;
  color: var(--stage-ink);
  background: var(--stage-tile);
  border: 1px solid var(--stage-border);
  border-radius: 12px;
  box-shadow: 0 9px 20px color-mix(in srgb, #071639, transparent 88%);
}
.studio-object strong { font-size: 1.24rem; line-height: 1.15; letter-spacing: -.035em; }
.studio-object small, .studio-object > span:not(.studio-chip) { color: var(--stage-muted); font-size: .72rem; }
.studio-live { display: inline-block; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--stage-green); vertical-align: .12em; }
.studio-scroll {
  width: min(100%, 350px);
  height: 136px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--stage-border) var(--stage);
  border: 1px solid var(--stage-border);
  border-radius: 8px;
  background: var(--stage-tile);
}
.studio-scroll-story { height: 285px; }
.studio-pin { position: sticky; top: 0; height: 132px; display: grid; place-items: center; padding: 10px; }
.studio:not([data-visible="true"]) * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .studio *, .studio *::before, .studio *::after { animation: none !important; transition: none !important; }
}

/* specimen */
.studio-fade-frame { position: relative; width: min(100%, 350px); }
.studio-fade-frame::before, .studio-fade-frame::after {
  content: ''; position: absolute; inset: auto 8px 1px 1px; height: 38px; z-index: 1; pointer-events: none;
  backdrop-filter: blur(var(--blur, 12px)); mask-image: linear-gradient(transparent 8%, #000 100%); border-radius: 0 0 6px 6px;
}
.studio-fade-frame::before { height: 59px; backdrop-filter: blur(calc(var(--blur, 12px) / 3)); }
.studio-fade-frame ul { list-style: none; margin: 0; padding: 5px 13px 44px; }
.studio-fade-frame li { display: flex; gap: 8px; align-items: center; padding-block: 7px; font-size: .8rem; border-bottom: 1px solid var(--stage-border); }

便当网格交错显现

滚动查看依次显现的卡片,或重播入场。

向下滚动查看指标 ↓

会话8,402
转化率4.8%
延迟42 ms
可用时间99.9%
代码与 AI 提示词
.studio {
  --stage: #edf1f8;
  --stage-border: #c7d1e4;
  --stage-ink: #172740;
  --stage-muted: #455976;
  --stage-tile: #ffffff;
  --stage-accent: #254fc2;
  --stage-accent-wash: #dce6ff;
  --stage-green: #14765d;
  --stage-ease: cubic-bezier(.23, 1, .32, 1);
  color: var(--stage-ink);
  background: var(--stage-tile);
  border-radius: inherit;
}
[data-theme="dark"] .studio, [data-stage="dark"].studio {
  --stage: #141a27;
  --stage-border: #35425e;
  --stage-ink: #f1f5ff;
  --stage-muted: #aebbd5;
  --stage-tile: #202a3d;
  --stage-accent: #a5baff;
  --stage-accent-wash: #2b3b64;
  --stage-green: #70dfbb;
}
.studio-stage {
  min-height: 164px;
  display: grid;
  place-items: center;
  padding: 13px;
  isolation: isolate;
  overflow: clip;
  border-radius: 7px;
  background: radial-gradient(circle, color-mix(in srgb, var(--stage-accent), transparent 76%) .65px, transparent 1px) center / 13px 13px, var(--stage);
}
.studio:has(.studio-controls) .studio-stage { border-end-start-radius: 0; border-end-end-radius: 0; }
.studio-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  min-height: 49px;
  padding: 6px 12px;
  border-top: 1px solid var(--stage-border);
}
.studio-controls label {
  min-width: 165px;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  font-size: .74rem;
}
.studio-controls output { color: var(--stage-muted); font: .73rem ui-monospace, monospace; }
.studio-controls input { grid-column: 1/-1; margin: 0; width: 100%; accent-color: var(--stage-accent); }
.studio-action, .studio-cta {
  padding: 5px 10px;
  min-height: 34px;
  border-radius: 7px;
  border: 1px solid var(--stage-border);
  background: var(--stage-tile);
  color: var(--stage-ink);
  font: 600 .78rem/1.3 system-ui, sans-serif;
  cursor: pointer;
  transition: transform 145ms var(--stage-ease), background-color 145ms;
}
.studio :is(button, input, [tabindex]):focus-visible { outline: 2px solid var(--stage-accent); outline-offset: 2px; }
.studio-action:active, .studio-cta:active { transform: scale(.97); }
.studio-cta { background: var(--stage-accent); border-color: transparent; color: var(--stage); }
.studio-object {
  position: relative;
  width: min(250px, 100%);
  display: grid;
  gap: 5px;
  justify-items: start;
  text-align: start;
  padding: 14px 17px;
  color: var(--stage-ink);
  background: var(--stage-tile);
  border: 1px solid var(--stage-border);
  border-radius: 12px;
  box-shadow: 0 9px 20px color-mix(in srgb, #071639, transparent 88%);
}
.studio-object strong { font-size: 1.24rem; line-height: 1.15; letter-spacing: -.035em; }
.studio-object small, .studio-object > span:not(.studio-chip) { color: var(--stage-muted); font-size: .72rem; }
.studio-live { display: inline-block; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--stage-green); vertical-align: .12em; }
.studio-scroll {
  width: min(100%, 350px);
  height: 136px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--stage-border) var(--stage);
  border: 1px solid var(--stage-border);
  border-radius: 8px;
  background: var(--stage-tile);
}
.studio-scroll-story { height: 285px; }
.studio-pin { position: sticky; top: 0; height: 132px; display: grid; place-items: center; padding: 10px; }
.studio:not([data-visible="true"]) * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .studio *, .studio *::before, .studio *::after { animation: none !important; transition: none !important; }
}

/* specimen */
.studio-bento-instruction { display: grid; place-items: center; margin: 0; height: 75px; color: var(--stage-muted); font-size: .8rem; }
.studio-bento { display: grid; gap: 5px; padding: 8px; grid-template-columns: 1.4fr 1fr; }
.studio-bento .studio-object { width: 100%; padding: 7px; box-shadow: none; background: var(--stage); }
.studio-bento strong { font-size: 1rem; }

滚动前后对比滑块

滚动舞台或拖动滑块,比较两个设计版本。

修改后界面表面
修改前界面表面
代码与 AI 提示词
.studio {
  --stage: #edf1f8;
  --stage-border: #c7d1e4;
  --stage-ink: #172740;
  --stage-muted: #455976;
  --stage-tile: #ffffff;
  --stage-accent: #254fc2;
  --stage-accent-wash: #dce6ff;
  --stage-green: #14765d;
  --stage-ease: cubic-bezier(.23, 1, .32, 1);
  color: var(--stage-ink);
  background: var(--stage-tile);
  border-radius: inherit;
}
[data-theme="dark"] .studio, [data-stage="dark"].studio {
  --stage: #141a27;
  --stage-border: #35425e;
  --stage-ink: #f1f5ff;
  --stage-muted: #aebbd5;
  --stage-tile: #202a3d;
  --stage-accent: #a5baff;
  --stage-accent-wash: #2b3b64;
  --stage-green: #70dfbb;
}
.studio-stage {
  min-height: 164px;
  display: grid;
  place-items: center;
  padding: 13px;
  isolation: isolate;
  overflow: clip;
  border-radius: 7px;
  background: radial-gradient(circle, color-mix(in srgb, var(--stage-accent), transparent 76%) .65px, transparent 1px) center / 13px 13px, var(--stage);
}
.studio:has(.studio-controls) .studio-stage { border-end-start-radius: 0; border-end-end-radius: 0; }
.studio-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  min-height: 49px;
  padding: 6px 12px;
  border-top: 1px solid var(--stage-border);
}
.studio-controls label {
  min-width: 165px;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  font-size: .74rem;
}
.studio-controls output { color: var(--stage-muted); font: .73rem ui-monospace, monospace; }
.studio-controls input { grid-column: 1/-1; margin: 0; width: 100%; accent-color: var(--stage-accent); }
.studio-action, .studio-cta {
  padding: 5px 10px;
  min-height: 34px;
  border-radius: 7px;
  border: 1px solid var(--stage-border);
  background: var(--stage-tile);
  color: var(--stage-ink);
  font: 600 .78rem/1.3 system-ui, sans-serif;
  cursor: pointer;
  transition: transform 145ms var(--stage-ease), background-color 145ms;
}
.studio :is(button, input, [tabindex]):focus-visible { outline: 2px solid var(--stage-accent); outline-offset: 2px; }
.studio-action:active, .studio-cta:active { transform: scale(.97); }
.studio-cta { background: var(--stage-accent); border-color: transparent; color: var(--stage); }
.studio-object {
  position: relative;
  width: min(250px, 100%);
  display: grid;
  gap: 5px;
  justify-items: start;
  text-align: start;
  padding: 14px 17px;
  color: var(--stage-ink);
  background: var(--stage-tile);
  border: 1px solid var(--stage-border);
  border-radius: 12px;
  box-shadow: 0 9px 20px color-mix(in srgb, #071639, transparent 88%);
}
.studio-object strong { font-size: 1.24rem; line-height: 1.15; letter-spacing: -.035em; }
.studio-object small, .studio-object > span:not(.studio-chip) { color: var(--stage-muted); font-size: .72rem; }
.studio-live { display: inline-block; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--stage-green); vertical-align: .12em; }
.studio-scroll {
  width: min(100%, 350px);
  height: 136px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--stage-border) var(--stage);
  border: 1px solid var(--stage-border);
  border-radius: 8px;
  background: var(--stage-tile);
}
.studio-scroll-story { height: 285px; }
.studio-pin { position: sticky; top: 0; height: 132px; display: grid; place-items: center; padding: 10px; }
.studio:not([data-visible="true"]) * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .studio *, .studio *::before, .studio *::after { animation: none !important; transition: none !important; }
}

/* specimen */
.studio-compare { position: relative; width: 100%; max-width: 270px; height: 104px; overflow: hidden; border-radius: 9px; border: 1px solid var(--stage-border); }
.studio-compare > div { position: absolute; inset: 0; display: grid; align-content: center; gap: 6px; padding: 12px; background: var(--stage-accent-wash); }
.studio-compare > div:first-child { justify-items: end; }
.studio-compare > div:nth-child(2) { background: var(--stage); clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); }
.studio-compare small { color: var(--stage-muted); }
.studio-compare span { width: 32%; height: 4px; border-radius: 4px; background: var(--stage-accent); }
.studio-compare > div:nth-child(2) span { background: var(--stage-border); border-radius: 0; }
.studio-compare > i { position: absolute; inset: 0 auto 0 var(--split, 50%); width: 2px; background: var(--stage-accent); }

阅读进度与章节

滚动文章,观察章节标签和进度线。

0%
现场笔记引言

引言

从故事开始。阅读指示器告诉读者还剩多少内容。

结构

为长页面设置简短章节和有意义的标题。

结语

当页面还有其他区块时,让进度仅与文章绑定。

代码与 AI 提示词
.scroll-toolbar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--canvas); border-radius: 7px 7px 0 0; }
.scroll-progress { color: var(--body); padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; font: 500 .67rem var(--mono); }
.scroll-frame { position: relative; height: 174px; overflow: auto; overscroll-behavior: contain; isolation: isolate; color: var(--ink); border-radius: 0 0 7px 7px; --p: 0; }
.scroll-frame:focus-visible { outline-offset: -3px; }
.scroll-frame article,.scroll-frame section { font-size: .84rem; }
.scroll-frame h3 { font-size: 1.18rem; }

.reading-track { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; min-height: 31px; background: var(--ink); color: var(--canvas); font: 500 .69rem var(--mono); }
.reading-track::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; transform: scaleX(var(--p)); transform-origin: left; background: var(--cyan); }
.reading-chapter { min-height: 117px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.reading-chapter + .reading-chapter { background: var(--canvas); }

@media (prefers-reduced-motion: reduce) {
  .parallax-pin i,.parallax-pin h3,.kinetic-pin h3 { transform: none; }
  .curtain-card { clip-path: none; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms;
    transition-duration: .001ms;
  }
}

Clip-path 幕布揭示

向下滚动,在卡片周围拉开幕布。

0%
幕后揭晓
代码与 AI 提示词
.scroll-toolbar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--canvas); border-radius: 7px 7px 0 0; }
.scroll-progress { color: var(--body); padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; font: 500 .67rem var(--mono); }
.scroll-frame { position: relative; height: 174px; overflow: auto; overscroll-behavior: contain; isolation: isolate; color: var(--ink); border-radius: 0 0 7px 7px; --p: 0; }
.scroll-frame:focus-visible { outline-offset: -3px; }
.scroll-frame article,.scroll-frame section { font-size: .84rem; }
.scroll-frame h3 { font-size: 1.18rem; }

.curtain-story { height: 410px; }
.curtain-pin { position: sticky; top: 0; height: 174px; display: grid; place-items: center; background: #202020; color: var(--dark-ink); padding: 12px; }
.curtain-card { width: min(85%,300px); height: 116px; display: grid; place-items: center; background: #d3e5ff; color: #172241; border-radius: 8px; clip-path: inset(0 calc(40% * (1 - var(--p))) 0 calc(40% * (1 - var(--p))) round 8px); }
.curtain-card span { font: 600 clamp(1.1rem,4vw,1.75rem) var(--font); letter-spacing: -.05em; }

@media (prefers-reduced-motion: reduce) {
  .parallax-pin i,.parallax-pin h3,.kinetic-pin h3 { transform: none; }
  .curtain-card { clip-path: none; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms;
    transition-duration: .001ms;
  }
}

粘性分屏叙事

主体保持固定,故事在旁推进。

0%

工作室导览

主体固定于此

01 · 建立

先锚定主体。

02 · 发展

在旁推进叙事。

03 · 收束

结尾让主体离场。

代码与 AI 提示词
.scroll-toolbar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--canvas); border-radius: 7px 7px 0 0; }
.scroll-progress { color: var(--body); padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; font: 500 .67rem var(--mono); }
.scroll-frame { position: relative; height: 174px; overflow: auto; overscroll-behavior: contain; isolation: isolate; color: var(--ink); border-radius: 0 0 7px 7px; --p: 0; }
.scroll-frame:focus-visible { outline-offset: -3px; }
.scroll-frame article,.scroll-frame section { font-size: .84rem; }
.scroll-frame h3 { font-size: 1.18rem; }

.split-story { display: grid; grid-template-columns: 44% 56%; background: var(--canvas); }
.split-pin { position: sticky; top: 0; height: 174px; display: grid; place-content: center; padding: 12px; background: var(--dark-surface); color: var(--dark-ink); }
.split-pin p { color: #d3d3d3; font: 400 .7rem var(--mono); }
.split-story article { min-height: 118px; padding: 12px; border-bottom: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  .parallax-pin i,.parallax-pin h3,.kinetic-pin h3 { transform: none; }
  .curtain-card { clip-path: none; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms;
    transition-duration: .001ms;
  }
}

横向滚动轨道

纵向滚动,横向拖动卡片轨道。

0%

01

发现

02

对比

03

配置

04

审查

05

发布

代码与 AI 提示词
.scroll-toolbar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--canvas); border-radius: 7px 7px 0 0; }
.scroll-progress { color: var(--body); padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; font: 500 .67rem var(--mono); }
.scroll-frame { position: relative; height: 174px; overflow: auto; overscroll-behavior: contain; isolation: isolate; color: var(--ink); border-radius: 0 0 7px 7px; --p: 0; }
.scroll-frame:focus-visible { outline-offset: -3px; }
.scroll-frame article,.scroll-frame section { font-size: .84rem; }
.scroll-frame h3 { font-size: 1.18rem; }

.horizontal-story { height: 435px; }
.horizontal-pin { display: flex; align-items: center; height: 174px; overflow: clip; position: sticky; top: 0; }
.horizontal-track { display: flex; gap: 8px; padding-inline: 10px; transform: translateX(calc(var(--p) * var(--track-travel,0px) * -1)); }
.horizontal-track article { width: 148px; height: 110px; display: grid; align-content: end; border-radius: 8px; padding: 10px; background: var(--canvas); box-shadow: var(--shadow); }
.horizontal-track article:nth-child(even) { background: #d3e5ff; color: #172241; --body: #33436a; }

@media (prefers-reduced-motion: reduce) {
  .parallax-pin i,.parallax-pin h3,.kinetic-pin h3 { transform: none; }
  .curtain-card { clip-path: none; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms;
    transition-duration: .001ms;
  }
}

分层视差景深

滚动时前景、背景与标签以不同速率移动。

0%

夜脊

代码与 AI 提示词
.scroll-toolbar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--canvas); border-radius: 7px 7px 0 0; }
.scroll-progress { color: var(--body); padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; font: 500 .67rem var(--mono); }
.scroll-frame { position: relative; height: 174px; overflow: auto; overscroll-behavior: contain; isolation: isolate; color: var(--ink); border-radius: 0 0 7px 7px; --p: 0; }
.scroll-frame:focus-visible { outline-offset: -3px; }
.scroll-frame article,.scroll-frame section { font-size: .84rem; }
.scroll-frame h3 { font-size: 1.18rem; }

.parallax-story { height: 410px; }
.parallax-pin { position: sticky; top: 0; height: 174px; isolation: isolate; overflow: hidden; display: grid; place-items: center; background: #171717; color: var(--dark-ink); }
.parallax-pin i { position: absolute; inset: 0; z-index: -2; background: #4c2889; clip-path: polygon(0 45%,28% 29%,51% 52%,77% 26%,100% 45%,100% 100%,0 100%); transform: translateY(calc(var(--p) * -30px)); }
.parallax-pin i:nth-child(2) { z-index: -1; background: #7928ca; clip-path: polygon(0 78%,30% 54%,49% 70%,73% 52%,100% 73%,100% 100%,0 100%); transform: translateY(calc(var(--p) * -18px)); }
.parallax-pin h3 { transform: translateY(calc(var(--p) * -7px)); }

@media (prefers-reduced-motion: reduce) {
  .parallax-pin i,.parallax-pin h3,.kinetic-pin h3 { transform: none; }
  .curtain-card { clip-path: none; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms;
    transition-duration: .001ms;
  }
}

动态标题

滚动以在固定画框内缩放标题。

0%

清晰表达。

缩放跟随滚动位置

代码与 AI 提示词
.scroll-toolbar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--canvas); border-radius: 7px 7px 0 0; }
.scroll-progress { color: var(--body); padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; font: 500 .67rem var(--mono); }
.scroll-frame { position: relative; height: 174px; overflow: auto; overscroll-behavior: contain; isolation: isolate; color: var(--ink); border-radius: 0 0 7px 7px; --p: 0; }
.scroll-frame:focus-visible { outline-offset: -3px; }
.scroll-frame article,.scroll-frame section { font-size: .84rem; }
.scroll-frame h3 { font-size: 1.18rem; }

.kinetic-story { height: 420px; }
.kinetic-pin { position: sticky; top: 0; height: 174px; overflow: clip; display: grid; align-content: center; justify-items: center; background: #d3e5ff; color: #172241; --body: #33436a; }
.kinetic-pin h3 { font-size: clamp(1.25rem,5vw,2.3rem); letter-spacing: -.06em; transform: scale(calc(1 + var(--p) * .65)); transform-origin: center; }
.kinetic-pin p { color: inherit; margin-top: 16px; font: 400 .7rem var(--mono); }

@media (prefers-reduced-motion: reduce) {
  .parallax-pin i,.parallax-pin h3,.kinetic-pin h3 { transform: none; }
  .curtain-card { clip-path: none; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms;
    transition-duration: .001ms;
  }
}

堆叠粘性卡片

滚动以堆叠三张卡片,粘性偏移错落分布。

0%

01 · 建立

先锚定主体。

02 · 发展

在旁推进叙事。

03 · 收束

结尾让主体离场。

代码与 AI 提示词
.scroll-toolbar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--canvas); border-radius: 7px 7px 0 0; }
.scroll-progress { color: var(--body); padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; font: 500 .67rem var(--mono); }
.scroll-frame { position: relative; height: 174px; overflow: auto; overscroll-behavior: contain; isolation: isolate; color: var(--ink); border-radius: 0 0 7px 7px; --p: 0; }
.scroll-frame:focus-visible { outline-offset: -3px; }
.scroll-frame article,.scroll-frame section { font-size: .84rem; }
.scroll-frame h3 { font-size: 1.18rem; }

.stacking-story { padding: 8px 12px 75px; }
.stacking-story article { position: sticky; top: var(--stack-top); margin-bottom: 32px; min-height: 99px; padding: 12px; border-radius: 8px; box-shadow: var(--shadow); background: var(--canvas); }
.stacking-story article:nth-child(2) { background: #d3e5ff; color: #172241; --body: #33436a; }
.stacking-story article:nth-child(3) { background: #d8ccf1; color: #172241; --body: #33436a; }

@media (prefers-reduced-motion: reduce) {
  .parallax-pin i,.parallax-pin h3,.kinetic-pin h3 { transform: none; }
  .curtain-card { clip-path: none; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms;
    transition-duration: .001ms;
  }
}

滚动吸附轮播

横向滑动、使用方向键,或运行自动滚动演示。

0%

第 1 张,共 5 张

发现

第 2 张,共 5 张

对比

第 3 张,共 5 张

配置

第 4 张,共 5 张

审查

第 5 张,共 5 张

发布

代码与 AI 提示词
.scroll-toolbar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--canvas); border-radius: 7px 7px 0 0; }
.scroll-progress { color: var(--body); padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; font: 500 .67rem var(--mono); }
.scroll-frame { position: relative; height: 174px; overflow: auto; overscroll-behavior: contain; isolation: isolate; color: var(--ink); border-radius: 0 0 7px 7px; --p: 0; }
.scroll-frame:focus-visible { outline-offset: -3px; }
.scroll-frame article,.scroll-frame section { font-size: .84rem; }
.scroll-frame h3 { font-size: 1.18rem; }

.scroll-frame.snap-frame { display: flex; gap: 8px; padding: 10px; scroll-snap-type: x mandatory; scroll-padding-inline: 10px; }
.snap-frame article { display: grid; align-content: end; flex: 0 0 min(76%,340px); background: var(--canvas); box-shadow: var(--shadow); padding: 14px; border-radius: 8px; scroll-snap-align: start; }
.snap-frame article:nth-child(2n) { background: #d3e5ff; color: #172241; --body: #33436a; }
.snap-frame[data-playing] { scroll-snap-type: none; }

@media (prefers-reduced-motion: reduce) {
  .parallax-pin i,.parallax-pin h3,.kinetic-pin h3 { transform: none; }
  .curtain-card { clip-path: none; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms;
    transition-duration: .001ms;
  }
}