Pulsar
1×

Spark

Medium

Three small groups with every third point in the accent, so the field reads as lit rather than drawn.

“Copy the hero” is the styles and the SVG, carrying the colours and speed you set above. “Copy as a section” adds the wrapper a hero actually needs: the SVG absolute behind the copy, inert to the pointer, and a scrim so the heading holds. The Free licence asks for one visible credit per page: Animation by Pulsar, linked to Pulsar. Licence

Tech
CSS, no JavaScript
Longest band
25 s, mirrored, loops
Canvas
1600 by 900, crops to fill
Default tone
Dark ground: ground #0b0a16, ink #ffffff
Family
Constellation · Points
Tags
pointsglowclusters

The four variables

Set any of these on the section, or on any ancestor, and the hero follows. Nothing else in the file needs editing.

--pulsar-hero-bg
the ground, default #0b0a16
--pulsar-hero-ink
the strokes, default #ffffff
--pulsar-accent
the accented strokes
--pulsar-hero-speed
a rate: 2 is twice as fast, 0.5 half speed

Files

Animated SVG
One file, styles inside it, animates in an img tag or on its own.Download animated SVG
Still
Spark, not animated
Download SVG

The code

As a section

<!-- Pulsar by Business Nebula · "hero-constellation-spark" · https://pulsaricons.com | Licence: https://pulsaricons.com/legal/licence | Free-licence credit: Animation by Pulsar, linked to https://pulsaricons.com | Business Nebula: https://businessnebula.com.au -->
<style>
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 5rem 5%;
  color: #ffffff;
  background: #0b0a16;
}
.hero > .pulsar-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
/* A scrim under the copy, heavier on the side the text sits on. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg, #0b0a16 0%, color-mix(in oklab, #0b0a16 78%, transparent) 40%, transparent 68%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 40rem;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}
/* Generated by scripts/hero-constellation.mjs from heroes/hero-constellation-spark/params.json.
   Consumers set four custom properties on any ancestor:
     --pulsar-hero-bg     the ground          (default #0b0a16)
     --pulsar-hero-ink    the dots and links  (default #ffffff)
     --pulsar-accent      the pulsing dots    (default #8a7df7)
     --pulsar-hero-speed  a rate; 2 is twice as fast, 0.5 half speed */
.pulsar-hero-constellation-spark {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--pulsar-hero-ink, #ffffff);
}
.pulsar-hero-constellation-spark .hero-constellation-spark-ground {
  fill: var(--pulsar-hero-bg, #0b0a16);
}
.pulsar-hero-constellation-spark circle {
  fill: currentColor;
}
.pulsar-hero-constellation-spark .hero-constellation-spark-link {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}
.pulsar-hero-constellation-spark .hero-constellation-spark-stars circle {
  fill: var(--pulsar-accent, #8a7df7);
}
.pulsar-hero-constellation-spark .hero-constellation-spark-ground-stop {
  stop-color: var(--pulsar-hero-bg, #0b0a16);
}
.pulsar-hero-constellation-spark .hero-constellation-spark-band {
  transform-box: view-box;
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.pulsar-hero-constellation-spark .hero-constellation-spark-band-1 {
  transform-origin: 1160px 340px;
  animation-name: hero-constellation-spark-band-1;
  animation-duration: calc(17s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-constellation-spark .hero-constellation-spark-band-2 {
  transform-origin: 1440px 560px;
  animation-name: hero-constellation-spark-band-2;
  animation-duration: calc(21s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-constellation-spark .hero-constellation-spark-band-3 {
  transform-origin: 1260px 790px;
  animation-name: hero-constellation-spark-band-3;
  animation-duration: calc(25s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-constellation-spark .hero-constellation-spark-stars {
  animation-name: hero-constellation-spark-stars;
  animation-duration: calc(7s / var(--pulsar-hero-speed, 1));
}
@keyframes hero-constellation-spark-band-1 {
  from {
    transform: translate(-26px, -16px) rotate(-1.5deg);
  }
  to {
    transform: translate(26px, 16px) rotate(1.5deg);
  }
}
@keyframes hero-constellation-spark-band-2 {
  from {
    transform: translate(26px, 16px) rotate(1.5deg);
  }
  to {
    transform: translate(-26px, -16px) rotate(-1.5deg);
  }
}
@keyframes hero-constellation-spark-band-3 {
  from {
    transform: translate(-26px, -16px) rotate(-1.5deg);
  }
  to {
    transform: translate(26px, 16px) rotate(1.5deg);
  }
}
@keyframes hero-constellation-spark-stars {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulsar-hero-constellation-spark .hero-constellation-spark-band-1,
  .pulsar-hero-constellation-spark .hero-constellation-spark-band-2,
  .pulsar-hero-constellation-spark .hero-constellation-spark-band-3,
  .pulsar-hero-constellation-spark .hero-constellation-spark-stars {
    animation: none;
  }
}
</style>
<section class="hero">
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="pulsar pulsar-hero pulsar-hero-constellation-spark" data-pulsar="hero-constellation-spark" preserveAspectRatio="xMidYMid slice" viewBox="0 0 1600 900"><metadata><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"><rdf:Description><dc:title>hero-constellation-spark</dc:title><dc:creator>Pulsar by Business Nebula</dc:creator><dc:publisher>Business Nebula</dc:publisher><dc:source>https://pulsaricons.com/icons</dc:source><dc:relation>https://businessnebula.com.au</dc:relation><dc:rights>Pulsar licence, https://pulsaricons.com/legal/licence</dc:rights></rdf:Description></rdf:RDF></metadata><defs><linearGradient id="hero-constellation-spark-veil" x1="0" x2="1600" y1="0" y2="0" gradientUnits="userSpaceOnUse"><stop class="hero-constellation-spark-ground-stop" offset="0" stop-opacity=".9"></stop><stop class="hero-constellation-spark-ground-stop" offset=".3" stop-opacity=".55"></stop><stop class="hero-constellation-spark-ground-stop" offset=".64" stop-opacity=".12"></stop><stop class="hero-constellation-spark-ground-stop" offset="1" stop-opacity="0"></stop></linearGradient></defs><rect width="1600" height="900" class="hero-constellation-spark-ground"></rect><g class="hero-constellation-spark-band hero-constellation-spark-band-1"><path stroke-opacity=".18" d="m1209.7 471.3 47.2-25.6m-47.2 25.6-62.7 12.1m62.7-12.1 102.2-89.5m-102.2 89.5-35.1-94.3m82.3 68.7L1147 483.4m109.9-37.7 55-63.9m-55 63.9-82.3-68.7m-37.7-159.8-41.6 52.1m41.6-52.1 99.3 47.1m-99.3-47.1-23.3 124.3m33.4 141.9-33.4-141.9m33.4 141.9 27.6-106.4m-79.3-107.7-92.3 39.2m92.3-39.2 140.9-5m-140.9 5 18.3 72.2m-18.3-72.2 79.3 107.7M1003 308.5l110.6 33m122.6-77.2 75.7 117.5m-75.7-117.5-122.6 77.2m122.6-77.2L1174.6 377m137.3 4.8-137.3-4.8m-61-35.5 61 35.5" class="hero-constellation-spark-link"></path><circle cx="1209.7" cy="471.3" r="2" fill-opacity=".35"></circle><circle cx="1256.9" cy="445.7" r="2.2" fill-opacity=".41"></circle><circle cx="1147" cy="483.4" r="2.6" fill-opacity=".52"></circle><circle cx="1095.3" cy="269.3" r="2.8" fill-opacity=".57"></circle><circle cx="1236.2" cy="264.3" r="3.2" fill-opacity=".68"></circle><circle cx="1311.9" cy="381.8" r="3.4" fill-opacity=".74"></circle><circle cx="1174.6" cy="377" r="3.8" fill-opacity=".85"></circle></g><g class="hero-constellation-spark-band hero-constellation-spark-band-2"><path stroke-opacity=".18" d="m1418.7 573.9 86.5-5.7m-86.5 5.7 59.6-78.1m-59.6 78.1-92.3 4.4m92.3-4.4-67.9 53.8m67.9-53.8-57.5-62.9m57.5 62.9 42.5 38.1m-42.5-38.1-44.5 114.6m131-120.3-26.9-72.4m26.9 72.4-44 43.8m17.1-116.2L1361.2 511m117.1-15.2-59.4-75.6m59.4 75.6L1461.2 612m-134.8-33.7 24.4 49.4m-24.4-49.4 34.8-67.3m-34.8 67.3 134.8 33.7m-134.8-33.7 47.8 110.2m-23.4-60.8 10.4-116.7m-10.4 116.7 110.4-15.7m-110.4 15.7 23.4 60.8m-13-177.5 57.7-90.8m-57.7 90.8 100 101m0 0-87 76.5" class="hero-constellation-spark-link"></path><circle cx="1418.7" cy="573.9" r="2" fill-opacity=".35"></circle><circle cx="1478.3" cy="495.8" r="2.45" fill-opacity=".48"></circle><circle cx="1326.4" cy="578.3" r="2.68" fill-opacity=".54"></circle><circle cx="1361.2" cy="511" r="3.13" fill-opacity=".66"></circle><circle cx="1418.9" cy="420.2" r="3.35" fill-opacity=".73"></circle><circle cx="1374.2" cy="688.5" r="3.8" fill-opacity=".85"></circle></g><g class="hero-constellation-spark-band hero-constellation-spark-band-3"><path stroke-opacity=".18" d="m1354.6 789.9-137.6-4.8m137.6 4.8 48.6 36.9m-48.6-36.9-51.4 7.5m51.4-7.5-37.6-32.8m37.6 32.8L1250 891.4m-33-106.3 86.2 12.3m-86.2-12.3 100-28m-100 28 33 106.3m-33-106.3-47.4 20.5m47.4-20.5-54.3 74.5m240.5-32.8-100-29.4m100 29.4-86.2-69.7m-13.8 40.3 13.8-40.3m-13.8 40.3-53.2 94m53.2-94-133.6 8.2m80.4 85.8-80.4-85.8m80.4 85.8-87.3-31.8m6.9-54-6.9 54" class="hero-constellation-spark-link"></path><circle cx="1354.6" cy="789.9" r="2" fill-opacity=".35"></circle><circle cx="1403.2" cy="826.8" r="2.51" fill-opacity=".49"></circle><circle cx="1303.2" cy="797.4" r="2.77" fill-opacity=".56"></circle><circle cx="1250" cy="891.4" r="3.29" fill-opacity=".71"></circle><circle cx="1169.6" cy="805.6" r="3.54" fill-opacity=".78"></circle></g><g class="hero-constellation-spark-band hero-constellation-spark-stars"><circle cx="1136.9" cy="217.2" r="3.36"></circle><circle cx="1003" cy="308.5" r="4.2"></circle><circle cx="1113.6" cy="341.5" r="5.04"></circle><circle cx="1505.2" cy="568.2" r="3.12"></circle><circle cx="1350.8" cy="627.7" r="4.06"></circle><circle cx="1461.2" cy="612" r="5"></circle><circle cx="1217" cy="785.1" r="3.16"></circle><circle cx="1317" cy="757.1" r="4.24"></circle><circle cx="1162.7" cy="859.6" r="5.32"></circle></g><rect width="1600" height="900" fill="url(#hero-constellation-spark-veil)" class="hero-constellation-spark-veil"></rect></svg>
  <div class="hero-scrim" aria-hidden="true"></div>
  <div class="hero-copy">
    <h1>Your heading</h1>
    <p>Your supporting sentence.</p>
    <a href="#">Your call to action</a>
  </div>
</section>

animation.css

/* Generated by scripts/hero-constellation.mjs from heroes/hero-constellation-spark/params.json.
   Consumers set four custom properties on any ancestor:
     --pulsar-hero-bg     the ground          (default #0b0a16)
     --pulsar-hero-ink    the dots and links  (default #ffffff)
     --pulsar-accent      the pulsing dots    (default #8a7df7)
     --pulsar-hero-speed  a rate; 2 is twice as fast, 0.5 half speed */
.pulsar-hero-constellation-spark {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--pulsar-hero-ink, #ffffff);
}
.pulsar-hero-constellation-spark .hero-constellation-spark-ground {
  fill: var(--pulsar-hero-bg, #0b0a16);
}
.pulsar-hero-constellation-spark circle {
  fill: currentColor;
}
.pulsar-hero-constellation-spark .hero-constellation-spark-link {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}
.pulsar-hero-constellation-spark .hero-constellation-spark-stars circle {
  fill: var(--pulsar-accent, #8a7df7);
}
.pulsar-hero-constellation-spark .hero-constellation-spark-ground-stop {
  stop-color: var(--pulsar-hero-bg, #0b0a16);
}
.pulsar-hero-constellation-spark .hero-constellation-spark-band {
  transform-box: view-box;
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.pulsar-hero-constellation-spark .hero-constellation-spark-band-1 {
  transform-origin: 1160px 340px;
  animation-name: hero-constellation-spark-band-1;
  animation-duration: calc(17s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-constellation-spark .hero-constellation-spark-band-2 {
  transform-origin: 1440px 560px;
  animation-name: hero-constellation-spark-band-2;
  animation-duration: calc(21s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-constellation-spark .hero-constellation-spark-band-3 {
  transform-origin: 1260px 790px;
  animation-name: hero-constellation-spark-band-3;
  animation-duration: calc(25s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-constellation-spark .hero-constellation-spark-stars {
  animation-name: hero-constellation-spark-stars;
  animation-duration: calc(7s / var(--pulsar-hero-speed, 1));
}
@keyframes hero-constellation-spark-band-1 {
  from {
    transform: translate(-26px, -16px) rotate(-1.5deg);
  }
  to {
    transform: translate(26px, 16px) rotate(1.5deg);
  }
}
@keyframes hero-constellation-spark-band-2 {
  from {
    transform: translate(26px, 16px) rotate(1.5deg);
  }
  to {
    transform: translate(-26px, -16px) rotate(-1.5deg);
  }
}
@keyframes hero-constellation-spark-band-3 {
  from {
    transform: translate(-26px, -16px) rotate(-1.5deg);
  }
  to {
    transform: translate(26px, 16px) rotate(1.5deg);
  }
}
@keyframes hero-constellation-spark-stars {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulsar-hero-constellation-spark .hero-constellation-spark-band-1,
  .pulsar-hero-constellation-spark .hero-constellation-spark-band-2,
  .pulsar-hero-constellation-spark .hero-constellation-spark-band-3,
  .pulsar-hero-constellation-spark .hero-constellation-spark-stars {
    animation: none;
  }
}

More in this family10 in Constellation

All heroes