Particles

Mood track «Numinous Shine» · Kevin MacLeod incompetech.com · licensed under Creative Commons BY 4.0
Example image of the style Particles
Preview built in HTML and CSS in this style

Particelle · Partículas · Particle system · Costellazioni · particles.js

Hundreds of glowing dots that drift, link up with thin lines or gather into a shape. They make a living, techy background that reacts to the mouse.

Era
2015 – today
Use
Mainstream
Domain
Web / UIMotion
Mood
futuristicdreamyimmersive
Explore

Live demo

View code
<canvas id="c"></canvas>
<div class="t"><h1>Particelle</h1><p>avvicina il mouse</p></div>
<script>
const c=document.getElementById('c'),x=c.getContext('2d'),mv=matchMedia('(prefers-reduced-motion: no-preference)').matches;
let W,H,m={x:-999,y:-999};const P=[];
const rs=()=>{W=c.width=innerWidth;H=c.height=innerHeight};rs();addEventListener('resize',rs);
for(let i=0;i<70;i++)P.push({x:Math.random()*W,y:Math.random()*H,vx:(Math.random()-.5)*.6,vy:(Math.random()-.5)*.6,r:Math.random()*1.8+.6});
addEventListener('pointermove',e=>{m.x=e.clientX;m.y=e.clientY});
function draw(){x.clearRect(0,0,W,H);
  P.forEach(p=>{if(mv){const dx=m.x-p.x,dy=m.y-p.y,d=Math.hypot(dx,dy);if(d<140){p.vx+=dx/d*.03;p.vy+=dy/d*.03}
    p.vx*=.99;p.vy*=.99;p.x=(p.x+p.vx+W)%W;p.y=(p.y+p.vy+H)%H}
    x.fillStyle='#F2F6FF';x.beginPath();x.arc(p.x,p.y,p.r,0,7);x.fill()});
  for(let i=0;i<P.length;i++)for(let j=i+1;j<P.length;j++){const a=P[i],b=P[j],d=Math.hypot(a.x-b.x,a.y-b.y);
    if(d<90){x.strokeStyle=`rgba(124,198,255,${1-d/90})`;x.lineWidth=.6;x.beginPath();x.moveTo(a.x,a.y);x.lineTo(b.x,b.y);x.stroke()}}
  if(mv)requestAnimationFrame(draw)}
draw();
</script>
body{margin:0;height:100vh;overflow:hidden;background:radial-gradient(circle at 30% 20%,#12204A,#070B1A 70%);font-family:Sora,sans-serif;color:#F2F6FF}
canvas{position:absolute;inset:0}
.t{position:absolute;inset:0;display:grid;place-content:center;text-align:center;pointer-events:none}
h1{margin:0;font-weight:700;font-size:clamp(36px,9vw,64px);letter-spacing:-.02em;background:linear-gradient(90deg,#7CC6FF,#B794FF);-webkit-background-clip:text;background-clip:text;color:transparent}
p{margin:6px 0 0;font-weight:300;letter-spacing:.2em;text-transform:uppercase;font-size:12px;opacity:.7}
@media (prefers-reduced-motion:no-preference){
  h1{animation:glow 4s ease-in-out infinite alternate}
  @keyframes glow{to{filter:drop-shadow(0 0 14px #7CC6FF88)}}
}

Characteristics

  • Many small elements with simple motion
  • Lines linking nearby particles
  • Attraction or repulsion from the pointer
  • Glow and additive transparency
  • Drawn on canvas or GPU for performance

Palette

Click a swatch to copy it

Typography

Headings · Sora Particles

Body · Inter Hundreds of glowing dots that drift, link up with thin lines or gather into a shape. They make a living, techy background that reacts to the mouse.

Motion

Easing
linear con velocità e attrito per particella
Typical duration
loop continuo a 60 fps
Techniques
Canvas 2D, requestAnimationFrame, tsParticles / particles.js, Three.js Points, shader GPU, OffscreenCanvas

Accessibility (reduced motion)

Draw the particles once in fixed positions, or slow them right down and turn off mouse reaction.

Prompt for your agent

Copy and paste into your prompt to have an agent or image generator reproduce this style.

For web pages and UI

Design the web page or interface in this style: Particles (Particelle, Partículas).
Hundreds of glowing dots that drift, link up with thin lines or gather into a shape. They make a living, techy background that reacts to the mouse.
Characteristics: Many small elements with simple motion, Lines linking nearby particles, Attraction or repulsion from the pointer, Glow and additive transparency, Drawn on canvas or GPU for performance.
Palette: #070B1A, #12204A, #7CC6FF, #B794FF, #F2F6FF.
Typography: headings in Sora, body text in Inter (Google Fonts or equivalents).
Mood: futuristic, dreamy, immersive.
Motion: easing linear con velocità e attrito per particella, typical duration loop continuo a 60 fps; techniques: Canvas 2D, requestAnimationFrame, tsParticles / particles.js, Three.js Points, shader GPU, OffscreenCanvas.
With prefers-reduced-motion: Draw the particles once in fixed positions, or slow them right down and turn off mouse reaction.
References: particles.js di Vincent Garreau (2015), tsParticles, Three.js Points, sfondi delle landing page tech.

Relations

Influenced: ConfettiConfettiSimilar to: Mouse TrailMouse TrailSimilar to: Aurora GradientAurora GradientSimilar to: Reactive dot gridReactive dot gridSimilar to: WebGL 3D SceneWebGL 3D SceneParticles
InfluencedSimilar toSee in the graph →

References

  • particles.js di Vincent Garreau (2015)
  • tsParticles
  • Three.js Points
  • sfondi delle landing page tech