Glowing Sparkles
🟢 CSS OnlyStar-like sparkles flashing, expanding, and glowing periodically on a deep space indigo sheet.
Responsive Horizontal Leaderboard
Slot ID: ca-pub-detail-below-preview
Interactive Settings
Medium Rectangle Block
Slot ID: ca-pub-detail-after-customization
Quick Copy Actions
Download File Packages
Keyboard Shortcuts
Responsive Horizontal Leaderboard
Slot ID: ca-pub-detail-before-related
More in Particles
Glowing Sparkles - CSS-only Particles background for React & Tailwind
Integrate the Glowing Sparkles 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>Glowing Sparkles</title>
<style>
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: #09090b;
}
:root {
--speed: 3s;
}
.sparkles-container {
position: relative;
width: 100%;
height: 100%;
background: #050510;
overflow: hidden;
}
.sparkle {
position: absolute;
width: 4px;
height: 4px;
background: #fff;
border-radius: 50%;
box-shadow: 0 0 10px #fff, 0 0 20px #7c5cff;
}
.sp-1 { top: 25%; left: 30%; animation: sparkle-flash var(--speed) ease-in-out infinite; }
.sp-2 { top: 60%; left: 75%; animation: sparkle-flash 3.5s ease-in-out infinite 1s; }
.sp-3 { top: 80%; left: 15%; animation: sparkle-flash 2.5s ease-in-out infinite 1.8s; }
@keyframes sparkle-flash {
0%, 100% { transform: scale(0); opacity: 0; }
50% { transform: scale(1.5); opacity: 1; }
}
</style>
</head>
<body>
<div class="sparkles-container">
<div class="sparkle sp-1"></div>
<div class="sparkle sp-2"></div>
<div class="sparkle sp-3"></div>
</div>
</body>
</html>React Component Wrapper (TSX)
import React from 'react';
export default function GlowingSparklesBackground() {
return (
<div
style={{ width: '100%', height: '100%', position: 'relative', overflow: 'hidden' }}
>
<style dangerouslySetInnerHTML={{ __html: `
:root {
--speed: 3s;
}
.sparkles-container {
position: relative;
width: 100%;
height: 100%;
background: #050510;
overflow: hidden;
}
.sparkle {
position: absolute;
width: 4px;
height: 4px;
background: #fff;
border-radius: 50%;
box-shadow: 0 0 10px #fff, 0 0 20px #7c5cff;
}
.sp-1 { top: 25%; left: 30%; animation: sparkle-flash var(--speed) ease-in-out infinite; }
.sp-2 { top: 60%; left: 75%; animation: sparkle-flash 3.5s ease-in-out infinite 1s; }
.sp-3 { top: 80%; left: 15%; animation: sparkle-flash 2.5s ease-in-out infinite 1.8s; }
@keyframes sparkle-flash {
0%, 100% { transform: scale(0); opacity: 0; }
50% { transform: scale(1.5); opacity: 1; }
}
` }} />
{/* HTML Structure */}
<div
style={{ width: '100%', height: '100%' }}
dangerouslySetInnerHTML={{ __html: `
<div class="sparkles-container">
<div class="sparkle sp-1"></div>
<div class="sparkle sp-2"></div>
<div class="sparkle sp-3"></div>
</div>
` }}
/>
</div>
);
}Next.js App Router Component (use client)
'use client';
import React from 'react';
export default function GlowingSparklesBackground() {
return (
<div
className="w-full h-full relative overflow-hidden"
>
<style dangerouslySetInnerHTML={{ __html: `
:root {
--speed: 3s;
}
.sparkles-container {
position: relative;
width: 100%;
height: 100%;
background: #050510;
overflow: hidden;
}
.sparkle {
position: absolute;
width: 4px;
height: 4px;
background: #fff;
border-radius: 50%;
box-shadow: 0 0 10px #fff, 0 0 20px #7c5cff;
}
.sp-1 { top: 25%; left: 30%; animation: sparkle-flash var(--speed) ease-in-out infinite; }
.sp-2 { top: 60%; left: 75%; animation: sparkle-flash 3.5s ease-in-out infinite 1s; }
.sp-3 { top: 80%; left: 15%; animation: sparkle-flash 2.5s ease-in-out infinite 1.8s; }
@keyframes sparkle-flash {
0%, 100% { transform: scale(0); opacity: 0; }
50% { transform: scale(1.5); opacity: 1; }
}
` }} />
{/* HTML Structure */}
<div
className="w-full h-full"
dangerouslySetInnerHTML={{ __html: `
<div class="sparkles-container">
<div class="sparkle sp-1"></div>
<div class="sparkle sp-2"></div>
<div class="sparkle sp-3"></div>
</div>
` }}
/>
</div>
);
}Raw CSS Stylesheet Snippet
:root {
--speed: 3s;
}
.sparkles-container {
position: relative;
width: 100%;
height: 100%;
background: #050510;
overflow: hidden;
}
.sparkle {
position: absolute;
width: 4px;
height: 4px;
background: #fff;
border-radius: 50%;
box-shadow: 0 0 10px #fff, 0 0 20px #7c5cff;
}
.sp-1 { top: 25%; left: 30%; animation: sparkle-flash var(--speed) ease-in-out infinite; }
.sp-2 { top: 60%; left: 75%; animation: sparkle-flash 3.5s ease-in-out infinite 1s; }
.sp-3 { top: 80%; left: 15%; animation: sparkle-flash 2.5s ease-in-out infinite 1.8s; }
@keyframes sparkle-flash {
0%, 100% { transform: scale(0); opacity: 0; }
50% { transform: scale(1.5); opacity: 1; }
}