https://motioncanvas.online/preview/drifting-fireflies
Scroll Down

Loading Canvas Shader...

Next-Gen Scroll Mechanics

Experience Beautiful Ambient Depth

This browser window is simulating a production webpage. As you scroll down, the ambient Drifting Fireflies background dynamically zooms and pulls focus in real-time, creating beautiful, cinematic parallax depth.

Built for Ultra Performance

Modern web layouts require buttery-smooth animations. Our styles run completely on the GPU, avoiding CPU reflow and main-thread layout jank.

Focus Pull Parallax

Scroll depth controls blur intensity and lens scaling simultaneously to guide focus elegantly.

GPU-Accelerated

Uses hardware transforms and native filters, optimized for stable 120fps scrolling.

Highly Customizable

Adjust speed, maximum blur limit, zoom multipliers, and filters in real-time.

© 2026 MOTIONCANVAS. ALL RIGHTS RESERVED.ACTIVE BACKGROUND: DRIFTING FIREFLIES

Drifting Fireflies

🟢 CSS Only

Simulates yellow-green bio-luminescent fireflies hovering and weaving softly through dark forests.

#fireflies#nature#glow#forest
Advertisement
Sponsor Advertisement
728 × 90 | Responsive Banner

Responsive Horizontal Leaderboard

Slot ID: ca-pub-detail-below-preview

Google AdSense Placeholder

Interactive Settings

Motion PresetsCustom Tuning
Animation Speed1.0x
Blur (Aesthetic diffusion)0px
Layer Opacity100%
Scale Zoom1.0x
Rotation Angle0°
Advertisement
Sponsor Advertisement
300 × 250 | Rectangle

Medium Rectangle Block

Slot ID: ca-pub-detail-after-customization

Google AdSense Placeholder

Quick Copy Actions

Download File Packages

Keyboard Shortcuts

Space Play/Pause
F Fullscreen
R Reset Slider
C Copy Code
Advertisement
Sponsor Advertisement
728 × 90 | Responsive Banner

Responsive Horizontal Leaderboard

Slot ID: ca-pub-detail-before-related

Google AdSense Placeholder

More in Particles

Drifting Fireflies - CSS-only Particles background for React & Tailwind

Integrate the Drifting Fireflies directly into your website. This asset is rendered using pure CSS and HTML keyframes. It is optimized for zero layout-shifts and runs with high-performance hardware-accelerated processing.

Performance Specifications

  • Render Mode: CSS-ONLY (CSS-only)
  • Fluidity: Locked at 60fps dynamic loop
  • Bundle Footprint: Zero external NPM dependencies
  • SEO Indexing status: 100% Crawlable static semantic HTML

🛠️ Integration Capabilities

Our templates expose inline design tokens like --color-1 and --color-2 for infinite color palettes. This template is designed to fit inside hero elements, full-screen landing pages, and interactive presentation cards.

Technical Code Reference & Syntaxes for Googlebot & Crawlers

The snippets below display the direct, unminified source code utilized for rendering this background.

HTML & Inline CSS Snippet (Vanilla)

<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Drifting Fireflies</title>
  <style>
    html, body {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      background: #09090b;
    }
    
    :root {
      --speed: 8s;
    }
    
    .firefly-container {
      position: relative;
      width: 100%;
      height: 100%;
      background: #020804;
      overflow: hidden;
    }
    
    .firefly {
      position: absolute;
      width: 6px;
      height: 6px;
      background: #adff2f;
      border-radius: 50%;
      box-shadow: 0 0 10px #adff2f, 0 0 20px rgba(173,255,47,0.4);
    }
    
    .ff-1 { top: 30%; left: 20%; animation: firefly-weave var(--speed) infinite ease-in-out; }
    .ff-2 { top: 65%; left: 60%; animation: firefly-weave 11s infinite ease-in-out 1.5s; }
    .ff-3 { top: 15%; left: 75%; animation: firefly-weave 9s infinite ease-in-out 3s; }
    
    @keyframes firefly-weave {
      0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
      50% { transform: translate(80px, -60px) scale(1.3); opacity: 1; }
    }
  </style>
</head>
<body>

  <div class="firefly-container">
    <div class="firefly ff-1"></div>
    <div class="firefly ff-2"></div>
    <div class="firefly ff-3"></div>
  </div>

  
</body>
</html>

React Component Wrapper (TSX)

import React from 'react';

export default function DriftingFirefliesBackground() {
  

  return (
    <div 
       
      style={{ width: '100%', height: '100%', position: 'relative', overflow: 'hidden' }}
    >
      <style dangerouslySetInnerHTML={{ __html: `
        :root {
          --speed: 8s;
        }
        
        .firefly-container {
          position: relative;
          width: 100%;
          height: 100%;
          background: #020804;
          overflow: hidden;
        }
        
        .firefly {
          position: absolute;
          width: 6px;
          height: 6px;
          background: #adff2f;
          border-radius: 50%;
          box-shadow: 0 0 10px #adff2f, 0 0 20px rgba(173,255,47,0.4);
        }
        
        .ff-1 { top: 30%; left: 20%; animation: firefly-weave var(--speed) infinite ease-in-out; }
        .ff-2 { top: 65%; left: 60%; animation: firefly-weave 11s infinite ease-in-out 1.5s; }
        .ff-3 { top: 15%; left: 75%; animation: firefly-weave 9s infinite ease-in-out 3s; }
        
        @keyframes firefly-weave {
          0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
          50% { transform: translate(80px, -60px) scale(1.3); opacity: 1; }
        }
      ` }} />
      
      {/* HTML Structure */}
      <div 
        style={{ width: '100%', height: '100%' }}
        dangerouslySetInnerHTML={{ __html: `
          <div class="firefly-container">
            <div class="firefly ff-1"></div>
            <div class="firefly ff-2"></div>
            <div class="firefly ff-3"></div>
          </div>
        ` }}
      />
    </div>
  );
}

Next.js App Router Component (use client)

'use client';

import React from 'react';

export default function DriftingFirefliesBackground() {
  

  return (
    <div 
       
      className="w-full h-full relative overflow-hidden"
    >
      <style dangerouslySetInnerHTML={{ __html: `
        :root {
          --speed: 8s;
        }
        
        .firefly-container {
          position: relative;
          width: 100%;
          height: 100%;
          background: #020804;
          overflow: hidden;
        }
        
        .firefly {
          position: absolute;
          width: 6px;
          height: 6px;
          background: #adff2f;
          border-radius: 50%;
          box-shadow: 0 0 10px #adff2f, 0 0 20px rgba(173,255,47,0.4);
        }
        
        .ff-1 { top: 30%; left: 20%; animation: firefly-weave var(--speed) infinite ease-in-out; }
        .ff-2 { top: 65%; left: 60%; animation: firefly-weave 11s infinite ease-in-out 1.5s; }
        .ff-3 { top: 15%; left: 75%; animation: firefly-weave 9s infinite ease-in-out 3s; }
        
        @keyframes firefly-weave {
          0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
          50% { transform: translate(80px, -60px) scale(1.3); opacity: 1; }
        }
      ` }} />
      
      {/* HTML Structure */}
      <div 
        className="w-full h-full"
        dangerouslySetInnerHTML={{ __html: `
          <div class="firefly-container">
            <div class="firefly ff-1"></div>
            <div class="firefly ff-2"></div>
            <div class="firefly ff-3"></div>
          </div>
        ` }}
      />
    </div>
  );
}

Raw CSS Stylesheet Snippet

:root {
  --speed: 8s;
}

.firefly-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #020804;
  overflow: hidden;
}

.firefly {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #adff2f;
  border-radius: 50%;
  box-shadow: 0 0 10px #adff2f, 0 0 20px rgba(173,255,47,0.4);
}

.ff-1 { top: 30%; left: 20%; animation: firefly-weave var(--speed) infinite ease-in-out; }
.ff-2 { top: 65%; left: 60%; animation: firefly-weave 11s infinite ease-in-out 1.5s; }
.ff-3 { top: 15%; left: 75%; animation: firefly-weave 9s infinite ease-in-out 3s; }

@keyframes firefly-weave {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  50% { transform: translate(80px, -60px) scale(1.3); opacity: 1; }
}