视差滚动
前后景以不同速度滚动,制造景深,游戏背景、落地页 hero 的常用手法。
前景
实现提示词
Parallax hero: the background scrolls at half the speed of the foreground.Parallax with lerped (smoothed) scroll tracking and layered speeds for depth.设计规范条目
### Parallax (#parallax) Category: Motion Parallax scrolls foreground and background at different speeds—creates depth, common in game backdrops and landing heroes. - Do: Parallax hero: the background scrolls at half the speed of the foreground With motion: Parallax with lerped (smoothed) scroll tracking and layered speeds for depth. Live demo: https://uidesignmd.com/guides/parallax/