EDITORIAL AURA自然漫游的
留白光幕
留白光幕
柔和弥散光幕
Diffused editorial aura
大面积高留白底面上几团低饱和日照光斑缓缓漫游呼吸,只用 CSS 不遮挡文字
常见大白话搜法:高留白柔和弥散光、浅底漫反射呼吸光幕、OpenAI 柔和光场、Diffused Aura
- 适用位置
- 背景、首屏标题
- 气质感觉
- 柔和、高级
- 触发方式
- 一直循环
- 适合网站
- 品牌官网、工具和应用、内容和博客
实现原理与无障碍底线
在隔离层叠上下文的背景容器里放置 3 个大半径径向柔光层(高模糊半径 blur px 且高透明度柔和过渡),通过 CSS 关键帧以 ease-in-out 仅驱动 translate 与 scale 往返漫游 drift px,各自按比例错开延迟而不改变透明度对比;不需要 JS,减少动态时停留在静谧采光态。
适用场景:AI 产品浅色官网首屏、专题公告头图、大留白编辑排版底层衬光
减少动态(prefers-reduced-motion):停止光斑漫游位移,保持浅底上的柔和静止漫反射光影
移动端与触屏:缩小色块尺寸并仅动合成层属性,保持高对比度正文清晰与帧率稳定
关键可调参数
| 参数 | 键名 | 默认值 | 建议范围 | 说明 |
|---|---|---|---|---|
| 漫游周期 | duration | 8000ms | — | — |
| 漂移幅度 | drift | 24px | — | — |
| 柔焦半径 | blur | 36px | — | — |
可直接复制给 AI(Cursor / Claude / v0)的提示词
请在我的项目里给背景加上「柔和弥散光幕」(Diffused editorial aura)效果:在隔离层叠上下文的背景容器里放置 3 个大半径径向柔光层(高模糊半径 blur px 且高透明度柔和过渡),通过 CSS 关键帧以 ease-in-out 仅驱动 translate 与 scale 往返漫游 drift px,各自按比例错开延迟而不改变透明度对比;不需要 JS,减少动态时停留在静谧采光态。
参数:漫游周期 8000ms,漂移幅度 24px,柔焦半径 36px。
要求:保留原有的内容和布局;系统开启"减少动态"时直接显示最终状态;脚本出错或没有执行时内容仍然可见。
参考:https://donglang.linter.top/effects/diffused-aura.md(原理、参数和参考代码)原生无依赖参考代码
CSS
.da-host {
position: relative;
overflow: hidden;
isolation: isolate;
--da-duration: 8000ms;
--da-drift: 24px;
--da-blur: 36px;
}
.da-veil {
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
}
.da-veil > i {
position: absolute;
border-radius: 50%;
filter: blur(var(--da-blur));
opacity: 0.72;
animation: da-roam var(--da-duration) ease-in-out infinite;
}
.da-veil > i:nth-child(1) {
left: -8%;
top: -12%;
width: 62%;
height: 68%;
background: radial-gradient(circle, rgb(187 230 232 / 0.9), transparent 72%);
animation-delay: 0s;
}
.da-veil > i:nth-child(2) {
right: -10%;
top: 8%;
width: 58%;
height: 64%;
background: radial-gradient(circle, rgb(253 209 192 / 0.9), transparent 72%);
animation-delay: calc(var(--da-duration) * 0.3);
}
.da-veil > i:nth-child(3) {
left: 22%;
bottom: -18%;
width: 64%;
height: 62%;
background: radial-gradient(circle, rgb(222 211 244 / 0.85), transparent 72%);
animation-delay: calc(var(--da-duration) * 0.6);
}
.da-content {
position: relative;
z-index: 1;
}
@keyframes da-roam {
0%, 100% {
translate: 0 0;
scale: 1;
}
50% {
translate: var(--da-drift) calc(var(--da-drift) * -0.5);
scale: 1.08;
}
}
@media (prefers-reduced-motion: reduce) {
.da-veil > i {
animation: none;
}
}HTML
<section class="da-host">
<div class="da-veil" aria-hidden="true">
<i></i><i></i><i></i>
</div>
<div class="da-content">
<h2>Intelligence with clarity</h2>
<p>大留白页面上的温和漫反射光幕</p>
</div>
</section>