Section 01
Faster Page Building
使用粘性定位让当前卡片在滚动到指定位置后停留, 后续卡片继续向上滚动并覆盖到它之上,从而形成层叠效果。
- 基于
position: sticky - 通过
top控制错层间距 - 通过
z-index强化覆盖关系