sparkles transparent background

Sparkling Transparent Backgrounds for Extra Shine

By
AD

Discovering sparkles with clear backgrounds isn't just a children's fascination, but a creative designer's dream. This enchanting effect, achieved with clever use of CSS and HTML, can bring a touch of magic to any webpage. Let's dive into the world of transparent background sparkles and make your webpage shine!

In this guide, we'll explore two primary aspects: creating sparkles from scratch and making backgrounds transparent. Plus, we'll delve into some captivating use cases to inspire your designing journey.

Creating Sparkles from Scratch

Before making backgrounds transparent, let's first learn how to create sparkles using CSS. The secret lies in utilizing the ::before and ::after pseudo-elements, along with some fancy CSS properties like border, border-radius, and box-shadow.

AD
Star Light Effect Hd Transparent, Star Light Effect, Star, Shiny, Light PNG Image For Free Download
Star Light Effect Hd Transparent, Star Light Effect, Star, Shiny, Light PNG Image For Free Download
Lente De Luz Brilhante 3 PNG , Brilho, Reflexo Da Lente, Efeito Neon Imagem PNG e PSD Para Download Gratuito
Lente De Luz Brilhante 3 PNG , Brilho, Reflexo Da Lente, Efeito Neon Imagem PNG e PSD Para Download Gratuito
Luz De Las Estrellas PNG Imágenes Y Dibujos Con Fondo Transparente Gratis - Pngtree
Luz De Las Estrellas PNG Imágenes Y Dibujos Con Fondo Transparente Gratis - Pngtree

Here's a simple example to kickstart your sparkle creation:

<span class="sparkle"></span>

And here's the CSS partner for this element:

white stars on a gray background are shining in the sky, and they appear to be falling
white stars on a gray background are shining in the sky, and they appear to be falling
white stars on a gray background are shining in the sky, and there is no image to
white stars on a gray background are shining in the sky, and there is no image to
the sun is shining brightly in the dark sky, and it appears to be very bright
the sun is shining brightly in the dark sky, and it appears to be very bright
.sparkle::before,
.sparkle::after {
    content: '';
    border-radius: 50%;
    position: absolute;
    background: #fff;
}

.sparkle::before {
    width: 10px;
    height: 10px;
    top: -5px;
    left: -5px;
    animation: sparkle 1s linear infinite;
    box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #fff, 0 0 25px #fff, 0 0 30px #fff;
}

.sparkle::after {
    width: 5px;
    height: 5px;
    top: 0px;
    left: 0px;
    animation: sparkle 1s linear infinite, pulsate 1s cubic-bezier(0.6, 0.2, 0, 1) infinite;
    box-shadow: 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff, 0 0 5px #fff, 0 0 6px #fff, 0 0 7px #fff, 0 0 8px #fff, 0 0 9px #fff, 0 0 10px #fff, 0 0 12px #fff, 0 0 14px #fff, 0 0 16px #fff, 0 0 20px #fff, 0 0 24px #fff, 0 0 30px #fff;
}

@interface {{
  animation: sparkle 1s linear infinite;
  animation: pulsate 1s cubic-bezier(0.6, 0.2, 0, 1) infinite;
}}

White sparks glitter special light effect. Vector sparkles. Christmas abstract dust. Sparkling magic dust particles effect. Sparkling texture. Stardust sparks
White sparks glitter special light effect. Vector sparkles. Christmas abstract dust. Sparkling magic dust particles effect. Sparkling texture. Stardust sparks
Sunlight Vectors - Download Free High-Quality Vectors | Magnific (formerly Freepik)
Sunlight Vectors - Download Free High-Quality Vectors | Magnific (formerly Freepik)
white stars are falling down on a gray background, and the light shines brightly
white stars are falling down on a gray background, and the light shines brightly
Download Sparks glitter, special light effect. Realistic for Your Design for free
Download Sparks glitter, special light effect. Realistic for Your Design for free
the sun shines brightly on a transparent background, it is very bright and shining
the sun shines brightly on a transparent background, it is very bright and shining
Bordure D'étoiles Scintillantes En Poudre D'or PNG , étoilé, étoile, Poudre D'or Fichier PNG et PSD pour le téléchargement libre
Bordure D'étoiles Scintillantes En Poudre D'or PNG , étoilé, étoile, Poudre D'or Fichier PNG et PSD pour le téléchargement libre
キラキラ白い星の光がイラストPNG素材、 星, 白い, 装飾ベクター画像、PSDファイルと背景 - Pngtree
キラキラ白い星の光がイラストPNG素材、 星, 白い, 装飾ベクター画像、PSDファイルと背景 - Pngtree
Brightness Wallpaper
Brightness Wallpaper
a white spiral on a dark background with stars and sparkles in the form of a spiral
a white spiral on a dark background with stars and sparkles in the form of a spiral
Silver Glitter Sparkle White Transparent, Silver Glitter With Sparkling Crystal, Silver Glitter, Sparkling, Crystal PNG Image For Free Download
Silver Glitter Sparkle White Transparent, Silver Glitter With Sparkling Crystal, Silver Glitter, Sparkling, Crystal PNG Image For Free Download
AD