Pulsar
1×

Ribbon

Light groundSparse

A tight bundle of twelve strokes weaving once across the section as a single ribbon, fading at both ends.

“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
19 s, mirrored, loops
Canvas
1600 by 900, stretches to fill
Default tone
Light ground: ground #f7f7fb, ink #1d1b3a
Series
paths
Tags
linesribbonflow

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 #f7f7fb
--pulsar-hero-ink
the strokes, default #1d1b3a
--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
Ribbon, not animated
Download SVG

The code

As a section

<!-- Pulsar by Business Nebula · "hero-paths-ribbon" · 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: #1d1b3a;
  background: #f7f7fb;
}
.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, #f7f7fb 0%, color-mix(in oklab, #f7f7fb 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-ribbon/params.json.
   Consumers set four custom properties on any ancestor:
     --pulsar-hero-bg     the ground          (default #f7f7fb)
     --pulsar-hero-ink    the strokes         (default #1d1b3a)
     --pulsar-accent      the accented strokes (default #8a7df7)
     --pulsar-hero-speed  a rate; 2 is twice as fast, 0.5 half speed */
.pulsar-hero-paths-ribbon {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--pulsar-hero-ink, #1d1b3a);
}
.pulsar-hero-paths-ribbon .hero-paths-ribbon-ground {
  fill: var(--pulsar-hero-bg, #f7f7fb);
}
.pulsar-hero-paths-ribbon .hero-paths-ribbon-stroke {
  fill: none;
  stroke-linecap: round;
}
.pulsar-hero-paths-ribbon .hero-paths-ribbon-accent-stop {
  stop-color: var(--pulsar-accent, #8a7df7);
}
.pulsar-hero-paths-ribbon .hero-paths-ribbon-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-ribbon .hero-paths-ribbon-band-1 {
  animation-name: hero-paths-ribbon-band-1;
  animation-duration: calc(12s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-paths-ribbon .hero-paths-ribbon-band-2 {
  animation-name: hero-paths-ribbon-band-2;
  animation-duration: calc(15s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-paths-ribbon .hero-paths-ribbon-band-3 {
  animation-name: hero-paths-ribbon-band-3;
  animation-duration: calc(19s / var(--pulsar-hero-speed, 1));
}
@keyframes hero-paths-ribbon-band-1 {
  from {
    transform: translate(-60px, 40px) skewY(-3deg);
  }
  to {
    transform: translate(60px, -40px) skewY(3deg);
  }
}
@keyframes hero-paths-ribbon-band-2 {
  from {
    transform: translate(60px, -40px) skewY(3deg);
  }
  to {
    transform: translate(-60px, 40px) skewY(-3deg);
  }
}
@keyframes hero-paths-ribbon-band-3 {
  from {
    transform: translate(-60px, 40px) skewY(-3deg);
  }
  to {
    transform: translate(60px, -40px) skewY(3deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulsar-hero-paths-ribbon .hero-paths-ribbon-band-1,
  .pulsar-hero-paths-ribbon .hero-paths-ribbon-band-2,
  .pulsar-hero-paths-ribbon .hero-paths-ribbon-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-ribbon" data-pulsar="hero-paths-ribbon" 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-ribbon</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-ribbon-fade" x1="0" x2="1600" y1="0" y2="0" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="currentColor" stop-opacity="0"></stop><stop offset=".3" stop-color="currentColor" stop-opacity=".9"></stop><stop offset=".7" stop-color="currentColor" stop-opacity=".9"></stop><stop offset="1" stop-color="currentColor" stop-opacity="0"></stop></linearGradient><linearGradient id="hero-paths-ribbon-fade-accent" x1="0" x2="1600" y1="0" y2="0" gradientUnits="userSpaceOnUse"><stop class="hero-paths-ribbon-accent-stop" offset="0" stop-opacity="0"></stop><stop class="hero-paths-ribbon-accent-stop" offset=".3" stop-opacity=".9"></stop><stop class="hero-paths-ribbon-accent-stop" offset=".7" stop-opacity=".9"></stop><stop class="hero-paths-ribbon-accent-stop" offset="1" stop-opacity="0"></stop></linearGradient></defs><rect width="1600" height="900" class="hero-paths-ribbon-ground"></rect><g class="hero-paths-ribbon-band hero-paths-ribbon-band-1"><path stroke="url(#hero-paths-ribbon-fade)" stroke-opacity=".5" stroke-width="1.4" d="M-180 420c545 353.9 1290-653.9 1960-300" class="hero-paths-ribbon-stroke"></path><path stroke="url(#hero-paths-ribbon-fade)" stroke-opacity=".61" stroke-width="1.7" d="M-180 451.2c545 356.6 1290-656.6 1960-300" class="hero-paths-ribbon-stroke"></path><path stroke="url(#hero-paths-ribbon-fade)" stroke-opacity=".72" stroke-width="2.1" d="M-180 478C365 741.5 1110-85.5 1780 178" class="hero-paths-ribbon-stroke"></path><path stroke="url(#hero-paths-ribbon-fade-accent)" stroke-opacity=".83" stroke-width="3" d="M-180 512.2c545 318.3 1290-618.3 1960-300" class="hero-paths-ribbon-stroke hero-paths-ribbon-accent"></path></g><g class="hero-paths-ribbon-band hero-paths-ribbon-band-2"><path stroke="url(#hero-paths-ribbon-fade-accent)" stroke-opacity=".8" stroke-width="1.9" d="M-180 431.7c545 376.5 1290-676.6 1960-300" class="hero-paths-ribbon-stroke hero-paths-ribbon-accent"></path><path stroke="url(#hero-paths-ribbon-fade)" stroke-opacity=".65" stroke-width="1.8" d="M-180 459.4c545 321.7 1290-621.7 1960-300" class="hero-paths-ribbon-stroke"></path><path stroke="url(#hero-paths-ribbon-fade)" stroke-opacity=".75" stroke-width="2.2" d="M-180 489.4c545 262.4 1290-562.5 1960-300" class="hero-paths-ribbon-stroke"></path><path stroke="url(#hero-paths-ribbon-fade)" stroke-opacity=".86" stroke-width="2.5" d="M-180 521.7c545 353.8 1290-653.9 1960-300" class="hero-paths-ribbon-stroke"></path></g><g class="hero-paths-ribbon-band hero-paths-ribbon-band-3"><path stroke="url(#hero-paths-ribbon-fade)" stroke-opacity=".57" stroke-width="1.6" d="M-180 442.2c545 377.5 1290-677.6 1960-300" class="hero-paths-ribbon-stroke"></path><path stroke="url(#hero-paths-ribbon-fade-accent)" stroke-opacity=".8" stroke-width="2.4" d="M-180 468c545 286.1 1290-586.1 1960-300" class="hero-paths-ribbon-stroke hero-paths-ribbon-accent"></path><path stroke="url(#hero-paths-ribbon-fade)" stroke-opacity=".79" stroke-width="2.3" d="M-180 501.2c545 283.4 1290-583.4 1960-300" class="hero-paths-ribbon-stroke"></path><path stroke="url(#hero-paths-ribbon-fade)" stroke-opacity=".9" stroke-width="2.6" d="M-180 530c545 376.5 1290-676.5 1960-300" class="hero-paths-ribbon-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-ribbon/params.json.
   Consumers set four custom properties on any ancestor:
     --pulsar-hero-bg     the ground          (default #f7f7fb)
     --pulsar-hero-ink    the strokes         (default #1d1b3a)
     --pulsar-accent      the accented strokes (default #8a7df7)
     --pulsar-hero-speed  a rate; 2 is twice as fast, 0.5 half speed */
.pulsar-hero-paths-ribbon {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--pulsar-hero-ink, #1d1b3a);
}
.pulsar-hero-paths-ribbon .hero-paths-ribbon-ground {
  fill: var(--pulsar-hero-bg, #f7f7fb);
}
.pulsar-hero-paths-ribbon .hero-paths-ribbon-stroke {
  fill: none;
  stroke-linecap: round;
}
.pulsar-hero-paths-ribbon .hero-paths-ribbon-accent-stop {
  stop-color: var(--pulsar-accent, #8a7df7);
}
.pulsar-hero-paths-ribbon .hero-paths-ribbon-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-ribbon .hero-paths-ribbon-band-1 {
  animation-name: hero-paths-ribbon-band-1;
  animation-duration: calc(12s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-paths-ribbon .hero-paths-ribbon-band-2 {
  animation-name: hero-paths-ribbon-band-2;
  animation-duration: calc(15s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-paths-ribbon .hero-paths-ribbon-band-3 {
  animation-name: hero-paths-ribbon-band-3;
  animation-duration: calc(19s / var(--pulsar-hero-speed, 1));
}
@keyframes hero-paths-ribbon-band-1 {
  from {
    transform: translate(-60px, 40px) skewY(-3deg);
  }
  to {
    transform: translate(60px, -40px) skewY(3deg);
  }
}
@keyframes hero-paths-ribbon-band-2 {
  from {
    transform: translate(60px, -40px) skewY(3deg);
  }
  to {
    transform: translate(-60px, 40px) skewY(-3deg);
  }
}
@keyframes hero-paths-ribbon-band-3 {
  from {
    transform: translate(-60px, 40px) skewY(-3deg);
  }
  to {
    transform: translate(60px, -40px) skewY(3deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulsar-hero-paths-ribbon .hero-paths-ribbon-band-1,
  .pulsar-hero-paths-ribbon .hero-paths-ribbon-band-2,
  .pulsar-hero-paths-ribbon .hero-paths-ribbon-band-3 {
    animation: none;
  }
}

More in this series10 in paths

All heroes