Pulsar
1×

Ridge

Sparse

Two long crests running north east, their contours drawn out into blades, drifting against each other.

“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
Light ground: ground #f7f7fb, ink #1d1b3a
Family
Contour · Lines
Tags
contourreliefdiagonal

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

The code

As a section

<!-- Pulsar by Business Nebula · "hero-contour-ridge" · 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: #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;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}
/* Generated by scripts/hero-contour.mjs from heroes/hero-contour-ridge/params.json.
   Consumers set four custom properties on any ancestor:
     --pulsar-hero-bg     the ground          (default #f7f7fb)
     --pulsar-hero-ink    the contour rings   (default #1d1b3a)
     --pulsar-accent      the index rings     (default #8a7df7)
     --pulsar-hero-speed  a rate; 2 is twice as fast, 0.5 half speed */
.pulsar-hero-contour-ridge {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--pulsar-hero-ink, #1d1b3a);
}
.pulsar-hero-contour-ridge .hero-contour-ridge-ground {
  fill: var(--pulsar-hero-bg, #f7f7fb);
}
.pulsar-hero-contour-ridge .hero-contour-ridge-ring {
  fill: none;
  stroke: currentColor;
}
.pulsar-hero-contour-ridge .hero-contour-ridge-accent {
  stroke: var(--pulsar-accent, #8a7df7);
}
.pulsar-hero-contour-ridge .hero-contour-ridge-ground-stop {
  stop-color: var(--pulsar-hero-bg, #f7f7fb);
}
.pulsar-hero-contour-ridge .hero-contour-ridge-band {
  transform-box: view-box;
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.pulsar-hero-contour-ridge .hero-contour-ridge-band-1 {
  transform-origin: 1010px 275px;
  animation-name: hero-contour-ridge-band-1;
  animation-duration: calc(17s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-contour-ridge .hero-contour-ridge-band-2 {
  transform-origin: 1300px 715px;
  animation-name: hero-contour-ridge-band-2;
  animation-duration: calc(23s / var(--pulsar-hero-speed, 1));
}
@keyframes hero-contour-ridge-band-1 {
  from {
    transform: translate(-22px, -10px) scale(0.98);
  }
  to {
    transform: translate(22px, 10px) scale(1.02);
  }
}
@keyframes hero-contour-ridge-band-2 {
  from {
    transform: translate(26px, 12px) scale(0.98);
  }
  to {
    transform: translate(-26px, -12px) scale(1.02);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulsar-hero-contour-ridge .hero-contour-ridge-band-1,
  .pulsar-hero-contour-ridge .hero-contour-ridge-band-2 {
    animation: none;
  }
}
</style>
<section class="hero">
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="pulsar pulsar-hero pulsar-hero-contour-ridge" data-pulsar="hero-contour-ridge" 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-contour-ridge</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-contour-ridge-veil" x1="0" x2="1600" y1="0" y2="0" gradientUnits="userSpaceOnUse"><stop class="hero-contour-ridge-ground-stop" offset="0" stop-opacity=".88"></stop><stop class="hero-contour-ridge-ground-stop" offset=".32" stop-opacity=".5"></stop><stop class="hero-contour-ridge-ground-stop" offset=".66" stop-opacity=".1"></stop><stop class="hero-contour-ridge-ground-stop" offset="1" stop-opacity="0"></stop></linearGradient></defs><rect width="1600" height="900" class="hero-contour-ridge-ground"></rect><g class="hero-contour-ridge-band hero-contour-ridge-band-1"><path stroke-opacity=".25" d="M1061.3 245.4c1.3 2 .8 5.4-1.4 9.1-2.2 3.8-6.5 8.7-11.7 13.3s-12.4 9.9-19.3 14.4-14.8 9-22.1 12.6c-7.3 3.5-15.1 6.8-21.4 8.9-6.3 2-12.4 3.1-16.6 3.1s-7.3-1.1-8.8-2.9c-1.6-1.9-2.1-4.7-.3-8.2 1.8-3.6 5.7-8.7 11-13.3 5.2-4.6 13.2-10.2 20.3-14.6 7.1-4.5 14.9-8.5 22.1-12s14.6-6.8 21.1-9 13.3-4 17.8-4.3c4.6-.2 8 .9 9.3 2.9" class="hero-contour-ridge-ring"></path><path stroke-opacity=".75" stroke-width="1.69" d="M1106.8 219.1c2.6 3.7 1.5 10.2-2.7 17.3-4.2 7-12.5 16.4-22.4 25.1-9.8 8.7-23.7 18.5-36.6 26.8s-27.6 16.4-41 23-27.8 12.9-39.5 16.6c-11.7 3.8-22.8 5.8-30.7 5.9s-13.6-1.9-16.9-5.1c-3.2-3.3-5.4-7.9-2.4-14.5s10.3-16.3 20.3-25.1c10.1-8.7 26.3-19.4 39.8-27.5 13.4-8.2 27.7-14.9 40.9-21.3 13.3-6.3 26.4-12.4 38.6-16.8 12.2-4.3 25.7-8.5 34.4-9.2 8.8-.8 15.6 1.1 18.2 4.8" class="hero-contour-ridge-ring hero-contour-ridge-accent"></path><path stroke-opacity=".45" stroke-width="1.6" d="M1153.4 192.2c4 5.4 2.3 15.1-3.9 25.5-6.3 10.5-19 24.6-33.7 37.4s-35.7 27.3-54.7 39.3c-19.1 12.1-40.1 23.6-59.6 33.1-19.5 9.6-40.4 18.8-57.4 24.2-17 5.5-32.9 8.4-44.6 8.6-11.6.3-19.9-2.5-25.2-7s-10.2-10.4-6.4-20c3.9-9.5 14.6-24.2 29.6-37.1 15.1-13 40.8-29.1 60.9-40.8s40.4-20.5 59.6-29.6c19.1-9 37.5-18 55.4-24.7 18-6.6 38.8-13.8 52.1-15.3 13.4-1.5 23.9 1.1 27.9 6.4" class="hero-contour-ridge-ring"></path><path stroke-opacity=".55" stroke-width="1.9" d="M1201.1 164.7c5.5 6.9 3.3 20-5.2 34-8.4 13.9-25.6 32.9-45.5 49.9-19.8 16.9-48.2 36.1-73.5 51.8-25.2 15.8-52.4 30.4-77.9 42.9-25.5 12.4-52.8 24.7-75 31.9s-42.9 10.8-58.3 11.2c-15.4.5-26.3-2.9-33.9-8.5-7.7-5.6-16.5-12.4-12.1-24.8 4.5-12.4 18.3-32.3 38.8-49.6 20.4-17.3 56.8-39.1 83.7-54.3 27-15.2 53-25.3 77.9-36.9 25-11.6 48-23.4 71.8-32.6 23.7-9.3 52.7-20.2 70.9-22.7 18.1-2.5 32.7.8 38.3 7.7" class="hero-contour-ridge-ring"></path><path stroke-opacity=".65" stroke-width="2.2" d="M1249.9 136.5c7.2 8.5 4.3 25.1-6.4 42.6-10.7 17.6-32.8 41.7-57.9 62.9-25.2 21.2-61.4 45-93 64.4-31.5 19.5-64.7 36.9-96.1 52.2s-64.9 30.6-92.2 39.5c-27.4 9-52.7 13.4-71.9 14.1-19.1.7-32.6-3.4-43-9.9-10.4-6.4-24.1-13.6-19.4-28.8s21.7-40.6 47.7-62.3c26-21.8 74.4-49.5 108.4-68.1 34.1-18.5 65.5-29.3 96.1-43.3 30.5-14.1 57.7-28.8 87.3-40.7 29.7-12 67.4-27.3 90.8-31.1 23.4-3.7 42.3 0 49.6 8.5" class="hero-contour-ridge-ring"></path></g><g class="hero-contour-ridge-band hero-contour-ridge-band-2"><path stroke-opacity=".25" d="M1356.6 682.3c1.6 2.4 1.1 6.3-1.3 10.6-2.3 4.3-7 9.9-12.6 15-5.7 5.2-13.6 11.1-21.2 16.1s-16.4 9.9-24.4 13.9c-8 3.9-16.7 7.5-23.8 9.6-7 2.1-13.7 3.2-18.5 3.1-4.7-.1-8.2-1.5-10-3.7s-2.5-5.5-.6-9.6 6.2-9.8 11.9-15c5.7-5.3 14.5-11.4 22.3-16.4 7.8-4.9 16.5-9.3 24.4-13.1 8-3.8 16.2-7.4 23.4-9.7 7.2-2.4 14.8-4.3 19.9-4.4s9 1.2 10.5 3.6" class="hero-contour-ridge-ring"></path><path stroke-opacity=".75" stroke-width="1.69" d="M1405.8 653.9c3 4.4 2 11.8-2.4 19.8s-13.4 18.6-24.1 28.2c-10.6 9.6-25.7 20.5-39.8 29.6-14.1 9.2-30.1 18-44.8 25.1-14.7 7.2-30.6 13.9-43.4 17.8-12.9 3.9-25.1 5.8-34 5.7-8.8-.1-15.2-2.6-18.9-6.5-3.7-3.8-6.3-9.2-3.2-16.7s11-18.4 21.8-28.2c10.8-9.7 28.6-21.5 43.2-30.4 14.7-8.9 30.3-16.2 44.9-23 14.5-6.9 28.9-13.5 42.3-18.1 13.4-4.5 28.3-8.9 38-9.4 9.7-.6 17.4 1.8 20.4 6.1" class="hero-contour-ridge-ring hero-contour-ridge-accent"></path><path stroke-opacity=".45" stroke-width="1.6" d="M1456.1 624.9c4.6 6.2 3.1 17.3-3.5 29.1s-20.1 27.6-36 41.7c-15.9 14.2-38.6 30.1-59.3 43.3s-43.7 25.6-64.9 35.9c-21.3 10.3-44.2 20.2-62.8 25.9-18.7 5.7-36.3 8.4-49.1 8.3-12.9 0-22.2-3.5-28.2-8.8-6-5.4-11.7-12.4-7.7-23.2 3.9-10.8 15.2-27.2 31.5-41.6s44.2-32 66.1-44.7c21.8-12.8 44-22.2 65-31.9 20.9-9.8 41-19.4 60.6-26.5 19.6-7 42.5-14.6 57.2-15.8 14.7-1.3 26.5 2 31.1 8.3" class="hero-contour-ridge-ring"></path><path stroke-opacity=".55" stroke-width="1.9" d="M1507.6 595.2c6.3 8.1 4.3 22.9-4.5 38.7-8.9 15.7-27.3 36.8-48.7 55.6-21.3 18.7-52.1 39.7-79.5 56.9s-57 33-84.8 46.4-57.5 26.5-81.9 34c-24.3 7.5-47.1 10.9-64 10.9-17 0-29.2-4.3-37.8-10.9-8.7-6.6-18.7-14.7-14.2-28.8 4.5-14 19.2-36.3 41.2-55.5 22-19.1 61.5-42.8 90.8-59.3s57.7-27.2 84.9-39.6c27.2-12.5 52.3-25.3 78.2-35 26-9.7 57.6-21.3 77.7-23.5 20-2.3 36.2 1.9 42.6 10.1" class="hero-contour-ridge-ring"></path><path stroke-opacity=".65" stroke-width="2.2" d="M1560.3 564.7c8.2 10 5.7 28.8-5.6 48.5-11.2 19.8-34.8 46.5-61.8 69.9-27.1 23.4-66.4 49.4-100.6 70.6-34.1 21.2-70.3 40-104.4 56.5-34.2 16.4-70.7 32.8-100.6 42.1-29.9 9.2-57.7 13.4-78.9 13.6-21.1.1-36.1-5-47.8-12.7s-27.1-16.4-22.4-33.6 22.6-45.7 50.6-69.7 80.5-54.1 117.5-74.2 71.3-31.3 104.6-46.3 62.8-30.9 95.2-43.6 73.5-28.9 99.2-32.4c25.7-3.6 46.8 1.3 55 11.3" class="hero-contour-ridge-ring"></path></g><rect width="1600" height="900" fill="url(#hero-contour-ridge-veil)" class="hero-contour-ridge-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-contour.mjs from heroes/hero-contour-ridge/params.json.
   Consumers set four custom properties on any ancestor:
     --pulsar-hero-bg     the ground          (default #f7f7fb)
     --pulsar-hero-ink    the contour rings   (default #1d1b3a)
     --pulsar-accent      the index rings     (default #8a7df7)
     --pulsar-hero-speed  a rate; 2 is twice as fast, 0.5 half speed */
.pulsar-hero-contour-ridge {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--pulsar-hero-ink, #1d1b3a);
}
.pulsar-hero-contour-ridge .hero-contour-ridge-ground {
  fill: var(--pulsar-hero-bg, #f7f7fb);
}
.pulsar-hero-contour-ridge .hero-contour-ridge-ring {
  fill: none;
  stroke: currentColor;
}
.pulsar-hero-contour-ridge .hero-contour-ridge-accent {
  stroke: var(--pulsar-accent, #8a7df7);
}
.pulsar-hero-contour-ridge .hero-contour-ridge-ground-stop {
  stop-color: var(--pulsar-hero-bg, #f7f7fb);
}
.pulsar-hero-contour-ridge .hero-contour-ridge-band {
  transform-box: view-box;
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.pulsar-hero-contour-ridge .hero-contour-ridge-band-1 {
  transform-origin: 1010px 275px;
  animation-name: hero-contour-ridge-band-1;
  animation-duration: calc(17s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-contour-ridge .hero-contour-ridge-band-2 {
  transform-origin: 1300px 715px;
  animation-name: hero-contour-ridge-band-2;
  animation-duration: calc(23s / var(--pulsar-hero-speed, 1));
}
@keyframes hero-contour-ridge-band-1 {
  from {
    transform: translate(-22px, -10px) scale(0.98);
  }
  to {
    transform: translate(22px, 10px) scale(1.02);
  }
}
@keyframes hero-contour-ridge-band-2 {
  from {
    transform: translate(26px, 12px) scale(0.98);
  }
  to {
    transform: translate(-26px, -12px) scale(1.02);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulsar-hero-contour-ridge .hero-contour-ridge-band-1,
  .pulsar-hero-contour-ridge .hero-contour-ridge-band-2 {
    animation: none;
  }
}

More in this family10 in Contour

All heroes