Live Preview

Library Backgrounds

Atmospheric Fog

Layered soft orbs creating fog depth.

Layered soft orbs creating fog depth.将本资源作为视觉与交互简报使用。把 Prompt 复制到 AI 编程工具,再按你的产品调整布局、品牌语气与动效强度。

Back to Library

Then paste it into your favorite AI coding tool.

Details

Type
Backgrounds
Category
Atmosphere
Style
Cinematic
Tech stack
CSS
Animation
Parallax
Difficulty
Beginner
License
Personal
Access
Free
Views
585
  • Parallax
  • CSS
  • JavaScript

Copy. Paste. Create.

This prompt is engineered to communicate visual direction, layout, interaction, animation and technical requirements.

Parallax fog orbs background, pointer-reactive, blurred layers.

Code

<!-- HTML -->
<div class="g" id="g"></div>

/* CSS */
.g{width:100%;height:100%;background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);background-size:48px 48px;mask-image:radial-gradient(ellipse at var(--x,50%) var(--y,40%),#000 20%,transparent 70%);transition:mask-position .1s}

// JS
var g=document.getElementById("g");window.addEventListener("pointermove",function(e){var r=g.getBoundingClientRect();g.style.setProperty("--x",((e.clientX-r.left)/r.width*100)+"%");g.style.setProperty("--y",((e.clientY-r.top)/r.height*100)+"%")});

Installation

Copy the prompt into your AI coding tool, then adapt colors and type to your brand.

License: Personal