Pulsar
1×

Strand

Dark groundSparse

Nine long strokes only, wide apart: the quietest field in the series, for a section that wants texture and nothing more.

“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
23 s, mirrored, loops
Canvas
1600 by 900, stretches to fill
Default tone
Dark ground: ground #0b0a16, ink #ffffff
Series
paths
Tags
linesdiagonalflow

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
Strand, not animated
Download SVG

The code

As a section

<!-- Pulsar by Business Nebula · "hero-paths-strand" · https://pulsar.businessnebula.com.au | Licence: https://pulsar.businessnebula.com.au/legal/licence | Free-licence credit: Animation by Pulsar, linked to https://pulsar.businessnebula.com.au | 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;
}
/* Generated by scripts/hero-paths.mjs from heroes/hero-paths-strand/params.json.
   Consumers set four custom properties on any ancestor:
     --pulsar-hero-bg     the ground          (default #0b0a16)
     --pulsar-hero-ink    the strokes         (default #ffffff)
     --pulsar-accent      the accented strokes (default #8a7df7)
     --pulsar-hero-speed  a rate; 2 is twice as fast, 0.5 half speed */
.pulsar-hero-paths-strand {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--pulsar-hero-ink, #ffffff);
}
.pulsar-hero-paths-strand .hero-paths-strand-ground {
  fill: var(--pulsar-hero-bg, #0b0a16);
}
.pulsar-hero-paths-strand .hero-paths-strand-stroke {
  fill: none;
  stroke-linecap: round;
}
.pulsar-hero-paths-strand .hero-paths-strand-accent-stop {
  stop-color: var(--pulsar-accent, #8a7df7);
}
.pulsar-hero-paths-strand .hero-paths-strand-band {
  transform-box: view-box;
  transform-origin: 800px 450px;
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.pulsar-hero-paths-strand .hero-paths-strand-band-1 {
  animation-name: hero-paths-strand-band-1;
  animation-duration: calc(15s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-paths-strand .hero-paths-strand-band-2 {
  animation-name: hero-paths-strand-band-2;
  animation-duration: calc(19s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-paths-strand .hero-paths-strand-band-3 {
  animation-name: hero-paths-strand-band-3;
  animation-duration: calc(23s / var(--pulsar-hero-speed, 1));
}
@keyframes hero-paths-strand-band-1 {
  from {
    transform: translate(-50px, 34px) skewY(-2deg);
  }
  to {
    transform: translate(50px, -34px) skewY(2deg);
  }
}
@keyframes hero-paths-strand-band-2 {
  from {
    transform: translate(50px, -34px) skewY(2deg);
  }
  to {
    transform: translate(-50px, 34px) skewY(-2deg);
  }
}
@keyframes hero-paths-strand-band-3 {
  from {
    transform: translate(-50px, 34px) skewY(-2deg);
  }
  to {
    transform: translate(50px, -34px) skewY(2deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulsar-hero-paths-strand .hero-paths-strand-band-1,
  .pulsar-hero-paths-strand .hero-paths-strand-band-2,
  .pulsar-hero-paths-strand .hero-paths-strand-band-3 {
    animation: none;
  }
}
</style>
<section class="hero">
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="pulsar pulsar-hero pulsar-hero-paths-strand" data-pulsar="hero-paths-strand" preserveAspectRatio="none" 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-paths-strand</dc:title><dc:creator>Pulsar by Business Nebula</dc:creator><dc:publisher>Business Nebula</dc:publisher><dc:source>https://pulsar.businessnebula.com.au/icons</dc:source><dc:relation>https://businessnebula.com.au</dc:relation><dc:rights>Pulsar licence, https://pulsar.businessnebula.com.au/legal/licence</dc:rights></rdf:Description></rdf:RDF></metadata><defs><linearGradient id="hero-paths-strand-fade" x1="0" x2="1600" y1="0" y2="0" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="currentColor" stop-opacity="0"></stop><stop offset=".38" stop-color="currentColor" stop-opacity=".12"></stop><stop offset=".72" stop-color="currentColor" stop-opacity=".7"></stop><stop offset="1" stop-color="currentColor"></stop></linearGradient><linearGradient id="hero-paths-strand-fade-accent" x1="0" x2="1600" y1="0" y2="0" gradientUnits="userSpaceOnUse"><stop class="hero-paths-strand-accent-stop" offset="0" stop-opacity="0"></stop><stop class="hero-paths-strand-accent-stop" offset=".38" stop-opacity=".12"></stop><stop class="hero-paths-strand-accent-stop" offset=".72" stop-opacity=".7"></stop><stop class="hero-paths-strand-accent-stop" offset="1"></stop></linearGradient></defs><rect width="1600" height="900" class="hero-paths-strand-ground"></rect><g class="hero-paths-strand-band hero-paths-strand-band-1"><path stroke="url(#hero-paths-strand-fade)" stroke-opacity=".4" stroke-width="1.2" d="M-180-190c545 316.5 1290-716.5 1960-400" class="hero-paths-strand-stroke"></path><path stroke="url(#hero-paths-strand-fade)" stroke-opacity=".55" stroke-width="1.7" d="M-180 337.1c545 255 1290-655 1960-400" class="hero-paths-strand-stroke"></path><path stroke="url(#hero-paths-strand-fade)" stroke-opacity=".7" stroke-width="2.1" d="M-180 928.3c545 212.1 1290-612.1 1960-400" class="hero-paths-strand-stroke"></path></g><g class="hero-paths-strand-band hero-paths-strand-band-2"><path stroke="url(#hero-paths-strand-fade-accent)" stroke-opacity=".8" stroke-width="1.7" d="M-180 31.4c545 359.5 1290-759.4 1960-400" class="hero-paths-strand-stroke hero-paths-strand-accent"></path><path stroke="url(#hero-paths-strand-fade)" stroke-opacity=".6" stroke-width="1.8" d="M-180 491.5c545 180.8 1290-580.8 1960-400" class="hero-paths-strand-stroke"></path><path stroke="url(#hero-paths-strand-fade)" stroke-opacity=".75" stroke-width="2.3" d="M-180 1118.9c545 295.7 1290-695.6 1960-400" class="hero-paths-strand-stroke"></path></g><g class="hero-paths-strand-band hero-paths-strand-band-3"><path stroke="url(#hero-paths-strand-fade)" stroke-opacity=".5" stroke-width="1.5" d="M-180 203.3c545 332.6 1290-732.7 1960-400" class="hero-paths-strand-stroke"></path><path stroke="url(#hero-paths-strand-fade-accent)" stroke-opacity=".8" stroke-width="2.4" d="M-180 699.6c545 162.1 1290-562.1 1960-400" class="hero-paths-strand-stroke hero-paths-strand-accent"></path><path stroke="url(#hero-paths-strand-fade)" stroke-opacity=".8" stroke-width="2.4" d="M-180 1260c545 354.2 1290-754.2 1960-400" class="hero-paths-strand-stroke"></path></g></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-paths.mjs from heroes/hero-paths-strand/params.json.
   Consumers set four custom properties on any ancestor:
     --pulsar-hero-bg     the ground          (default #0b0a16)
     --pulsar-hero-ink    the strokes         (default #ffffff)
     --pulsar-accent      the accented strokes (default #8a7df7)
     --pulsar-hero-speed  a rate; 2 is twice as fast, 0.5 half speed */
.pulsar-hero-paths-strand {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--pulsar-hero-ink, #ffffff);
}
.pulsar-hero-paths-strand .hero-paths-strand-ground {
  fill: var(--pulsar-hero-bg, #0b0a16);
}
.pulsar-hero-paths-strand .hero-paths-strand-stroke {
  fill: none;
  stroke-linecap: round;
}
.pulsar-hero-paths-strand .hero-paths-strand-accent-stop {
  stop-color: var(--pulsar-accent, #8a7df7);
}
.pulsar-hero-paths-strand .hero-paths-strand-band {
  transform-box: view-box;
  transform-origin: 800px 450px;
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.pulsar-hero-paths-strand .hero-paths-strand-band-1 {
  animation-name: hero-paths-strand-band-1;
  animation-duration: calc(15s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-paths-strand .hero-paths-strand-band-2 {
  animation-name: hero-paths-strand-band-2;
  animation-duration: calc(19s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-paths-strand .hero-paths-strand-band-3 {
  animation-name: hero-paths-strand-band-3;
  animation-duration: calc(23s / var(--pulsar-hero-speed, 1));
}
@keyframes hero-paths-strand-band-1 {
  from {
    transform: translate(-50px, 34px) skewY(-2deg);
  }
  to {
    transform: translate(50px, -34px) skewY(2deg);
  }
}
@keyframes hero-paths-strand-band-2 {
  from {
    transform: translate(50px, -34px) skewY(2deg);
  }
  to {
    transform: translate(-50px, 34px) skewY(-2deg);
  }
}
@keyframes hero-paths-strand-band-3 {
  from {
    transform: translate(-50px, 34px) skewY(-2deg);
  }
  to {
    transform: translate(50px, -34px) skewY(2deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulsar-hero-paths-strand .hero-paths-strand-band-1,
  .pulsar-hero-paths-strand .hero-paths-strand-band-2,
  .pulsar-hero-paths-strand .hero-paths-strand-band-3 {
    animation: none;
  }
}

More in this series10 in paths

All heroes