流星雨
Meteor Shower
几条细长的光斜着划过,尾巴渐隐,像一场安静的流星雨。
- 又叫:
- 流星
- 流星拖尾
- 斜向流星
- meteor shower
- shooting stars
- meteor effect
- falling stars
- 展厅
- 视觉质感
- 形态
- 固定舞台
- 播放
- 常驻循环
- 关键词
- 纯 CSS / 合成层动画 / 动效较多 / 可以直接用
参数工作台
复制给 AI
随参数实时更新做一个流星雨(meteor shower)背景:8 条细长的流星从右上往左下以 45° 斜向划过,单条 3s 走完,尾迹 80–160px 并用 linear-gradient 从透明渐到亮端,透明度最高 0.5。用 CSS @keyframes 只动 transform 和 opacity,每条用负 animation-delay 和不同起点、时长打散,整体 pointer-events: none 并压在内容层下面;颜色取 var(--stage-ink) 或强调色,不写死白色。prefers-reduced-motion 时停掉动画,只留静止光带。
meteor shower background: 8 thin meteors cross from the top right toward the bottom left at 45 degrees, each taking 3s, with an 80 to 160px tail drawn as a linear-gradient from transparent to a bright head and a peak opacity of 0.5. Animate transform and opacity only with CSS @keyframes, desynchronise them with negative animation-delay plus varied origins and durations, set pointer-events: none and keep the layer behind the content, and colour it with var(--stage-ink) or the accent colour instead of hard-coded white. Under prefers-reduced-motion stop the motion and keep only static diagonal streaks.
https://publieople.github.io/design-museum/entry/meteor-shower/?stage=photo
链接带着你调好的参数
什么时候用
- 暗色首屏或节日活动页,想要一点「夜空」的氛围而不是满屏动效
- 加载等待、空状态的背景,让停顿不显得死
- 发布成功、订阅完成这类庆祝时刻的轻量装饰,比礼花克制
适用场景:页面 / 卡片
推荐取值
- 流星数量
- 6–12 条
- 单条时长
- 2–4s
- 倾角
- 35–55°
- 尾迹长度
- 80–160px
别搞混
和「极光渐变」的区别
极光渐变是几团大面积色斑缓慢呼吸、互相叠加,没有方向也没有起点终点;流星雨是离散的细线沿固定倾角快速划过,一条结束才轮到下一条。
容易混的并排对照「极光渐变」
和「光晕聚光」的区别
光晕聚光是跟着指针或某个焦点的圆形光斑,位置由交互决定;流星雨的位置和节奏由动画自己安排,用户不操作也会持续发生。
容易混的并排对照「光晕聚光」
和「颗粒噪点」的区别
颗粒噪点是整屏静态的随机纹理,用来去掉渐变的塑料感;流星雨是有明确运动方向和拖尾的动态元素,两者的目的是氛围与事件感。
容易混的并排对照「颗粒噪点」
容易踩的坑
- 别对每条流星用大半径 blur 或 box-shadow,叠加十几条会直接掉帧;用 transform 位移加线性渐变的尾迹,必要时才加一层很轻的发光。
- 流星太多会盖住正文:6–12 条、透明度压在 0.5 以下,并且整层 pointer-events: none、z-index 在内容之下。
- 浅色舞台上白色流星几乎看不见,用 var(--stage-ink) 或强调色;要固定夜空底就自己垫一层深色,不要假设页面背景是深色。
- 所有流星同时从同一点出发会像下雨而不是流星雨;用负的 animation-delay 和不同的起点、时长把它们打散。
- prefers-reduced-motion 下停掉位移和闪烁,只留几条静止的斜向光带或纯渐变底。
无障碍降级
prefers-reduced-motion: reduce 时停掉位移动画,只保留几条静止的斜向光带或纯渐变背景,不闪不划。
关键词
- meteor shower
- linear-gradient
- @keyframes
- translate3d
- animation-delay
- opacity
- will-change
参考
相似展品
按展厅、标签与适用场景自动推荐