Pulsar
1×

Moraine

Sparse

Three low humps in a line, the rubble a glacier leaves, each on a period of its own.

“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, stretches to fill
Default tone
Dark ground: ground #0b0a16, ink #ffffff
Family
Contour · Lines
Tags
contourreliefhorizontal

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

The code

As a section

<!-- Pulsar by Business Nebula · "hero-contour-moraine" · 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-contour.mjs from heroes/hero-contour-moraine/params.json.
   Consumers set four custom properties on any ancestor:
     --pulsar-hero-bg     the ground          (default #0b0a16)
     --pulsar-hero-ink    the contour rings   (default #ffffff)
     --pulsar-accent      the index rings     (default #8a7df7)
     --pulsar-hero-speed  a rate; 2 is twice as fast, 0.5 half speed */
.pulsar-hero-contour-moraine {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--pulsar-hero-ink, #ffffff);
}
.pulsar-hero-contour-moraine .hero-contour-moraine-ground {
  fill: var(--pulsar-hero-bg, #0b0a16);
}
.pulsar-hero-contour-moraine .hero-contour-moraine-ring {
  fill: none;
  stroke: currentColor;
}
.pulsar-hero-contour-moraine .hero-contour-moraine-accent {
  stroke: var(--pulsar-accent, #8a7df7);
}
.pulsar-hero-contour-moraine .hero-contour-moraine-ground-stop {
  stop-color: var(--pulsar-hero-bg, #0b0a16);
}
.pulsar-hero-contour-moraine .hero-contour-moraine-band {
  transform-box: view-box;
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.pulsar-hero-contour-moraine .hero-contour-moraine-band-1 {
  transform-origin: 700px 780px;
  animation-name: hero-contour-moraine-band-1;
  animation-duration: calc(13s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-contour-moraine .hero-contour-moraine-band-2 {
  transform-origin: 1140px 710px;
  animation-name: hero-contour-moraine-band-2;
  animation-duration: calc(19s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-contour-moraine .hero-contour-moraine-band-3 {
  transform-origin: 1570px 640px;
  animation-name: hero-contour-moraine-band-3;
  animation-duration: calc(25s / var(--pulsar-hero-speed, 1));
}
@keyframes hero-contour-moraine-band-1 {
  from {
    transform: translate(-24px, -14px) scale(0.98);
  }
  to {
    transform: translate(24px, 14px) scale(1.02);
  }
}
@keyframes hero-contour-moraine-band-2 {
  from {
    transform: translate(24px, 14px) scale(0.98);
  }
  to {
    transform: translate(-24px, -14px) scale(1.02);
  }
}
@keyframes hero-contour-moraine-band-3 {
  from {
    transform: translate(-24px, -14px) scale(0.98);
  }
  to {
    transform: translate(24px, 14px) scale(1.02);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulsar-hero-contour-moraine .hero-contour-moraine-band-1,
  .pulsar-hero-contour-moraine .hero-contour-moraine-band-2,
  .pulsar-hero-contour-moraine .hero-contour-moraine-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-contour-moraine" data-pulsar="hero-contour-moraine" 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-moraine</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-moraine-veil" x1="0" x2="1600" y1="0" y2="0" gradientUnits="userSpaceOnUse"><stop class="hero-contour-moraine-ground-stop" offset="0" stop-opacity=".88"></stop><stop class="hero-contour-moraine-ground-stop" offset=".32" stop-opacity=".5"></stop><stop class="hero-contour-moraine-ground-stop" offset=".66" stop-opacity=".1"></stop><stop class="hero-contour-moraine-ground-stop" offset="1" stop-opacity="0"></stop></linearGradient></defs><rect width="1600" height="900" class="hero-contour-moraine-ground"></rect><g class="hero-contour-moraine-band hero-contour-moraine-band-1"><path stroke-opacity=".25" stroke-width=".9" d="M744.7 775.3c.5 3.2-.8 7-3.4 10.2-2.5 3.2-6.9 6.5-11.8 8.9-4.9 2.5-11.5 4.5-17.6 5.7-6.2 1.3-13.1 1.9-19.2 1.8-6.2-.1-12.7-.8-17.8-2.2s-9.7-3.7-12.8-6.2c-3.1-2.6-5.1-5.8-5.7-8.9-.6-3.2-.3-6.9 1.9-10.1 2.2-3.3 6.4-6.9 11.3-9.4 5-2.4 12.2-4.3 18.5-5.3 6.2-1.1 12.9-1.2 19-1.1 6.1.2 12.3.7 17.6 1.9 5.3 1.3 10.7 3.2 14 5.7 3.4 2.4 5.6 5.8 6 9" class="hero-contour-moraine-ring"></path><path stroke-opacity=".75" stroke-width="1.82" d="M787.5 770.8c1.1 6.2-1.5 13.7-6.5 19.9-5.1 6.2-14 12.8-23.7 17.3-9.8 4.6-23 8-34.8 10.1-11.9 2.1-24.6 2.9-36.2 2.7s-23.8-1.3-33.4-3.9c-9.6-2.5-18.2-6.9-24.2-11.6-5.9-4.7-9.7-10.6-11.5-16.6-1.9-6-3.4-13.2.3-19.6s11.7-14.3 21.7-18.9c9.9-4.6 25.8-7.2 38.1-8.6 12.3-1.5 24.2-.3 35.5.2 11.4.5 22.3.7 32.6 2.6 10.3 2 22.1 4.7 29.2 9.1 7 4.4 11.9 11.1 12.9 17.3" class="hero-contour-moraine-ring hero-contour-moraine-accent"></path><path stroke-opacity=".65" stroke-width="1.9" d="M832.4 766.1c1.9 9.3-2 20.8-9.8 30.1-7.7 9.4-21.8 19.3-36.7 25.9-15 6.5-35.5 10.8-53.1 13.6-17.5 2.8-35.6 3.4-52.5 3-16.9-.3-34.7-1.4-48.7-5.1s-26.3-10-35.2-16.8-14.4-15.1-18.1-24c-3.8-8.9-8.9-19.7-4.3-29.5s16.5-22.7 31.9-29.4c15.5-6.6 42.1-9.3 60.8-10.4 18.6-1.1 34.7 2.6 51 3.7 16.3 1 31.1.1 46.7 2.4 15.5 2.2 35.3 4.9 46.6 11s19.4 16.2 21.4 25.5" class="hero-contour-moraine-ring"></path></g><g class="hero-contour-moraine-band hero-contour-moraine-band-2"><path stroke-opacity=".25" stroke-width=".9" d="M1191.1 708.2c.2 3.4-1.6 7.2-4.7 10.4-3.1 3.1-8.4 6.3-14.2 8.5-5.7 2.2-13.3 3.9-20.4 4.7-7.1.9-14.9 1-21.9.5s-14.3-1.7-20-3.5c-5.6-1.8-10.7-4.6-14-7.4s-5.2-6.3-5.7-9.7c-.4-3.3.2-7.1 3-10.4 2.7-3.2 7.8-6.7 13.6-8.9s14.2-3.7 21.3-4.3c7.2-.7 14.8-.4 21.7.2s13.9 1.6 19.8 3.2c5.8 1.7 11.8 4.1 15.4 6.9 3.6 2.7 5.8 6.4 6.1 9.8" class="hero-contour-moraine-ring"></path><path stroke-opacity=".75" stroke-width="1.82" d="M1236.3 706.6c.7 6.3-2.7 13.7-8.7 19.6s-16.3 11.9-27.3 15.8c-11 4-25.7 6.5-38.8 7.8-13.1 1.4-27 1.3-39.7.3-12.6-1-25.9-2.9-36.2-6.1-10.3-3.3-19.4-8.2-25.5-13.4-6.1-5.1-9.7-11.2-11.3-17.4-1.5-6.2-2.6-13.5 2-19.7 4.5-6.2 13.9-13.6 25.1-17.5 11.3-4 28.9-5.6 42.4-6.2s26.4 1.4 38.7 2.6c12.4 1.3 24.3 2.2 35.4 4.9s23.8 6.2 31.1 11.1c7.4 4.9 12.2 11.9 12.8 18.2" class="hero-contour-moraine-ring hero-contour-moraine-accent"></path><path stroke-opacity=".65" stroke-width="1.9" d="M1283.8 705c1.3 9.3-3.9 20.5-12.9 29.2-9.1 8.8-25 17.7-41.6 23.2-16.7 5.6-39.1 8.4-58.3 10-19.1 1.6-38.7 1-56.8-.4-18.2-1.5-37.3-3.8-52.1-8.4-14.8-4.5-27.6-11.7-36.6-19-9.1-7.3-14.4-15.9-17.7-25s-8-20.1-2.3-29.5 19.6-21.5 36.7-27c17.2-5.6 46.1-6.5 66.3-6.4s37.3 5 54.7 7c17.5 2.1 33.5 2.3 50.1 5.5 16.6 3.3 37.7 7.3 49.4 14.1 11.8 6.8 19.7 17.4 21.1 26.7" class="hero-contour-moraine-ring"></path></g><g class="hero-contour-moraine-band hero-contour-moraine-band-3"><path stroke-opacity=".25" stroke-width=".9" d="M1616.9 643.3c-.1 3.5-2.2 7.3-5.4 10.2-3.2 3-8.3 5.7-13.8 7.5-5.5 1.7-12.6 2.6-19.2 2.8-6.5.2-13.8-.5-20.1-1.7s-12.9-3.2-17.9-5.7c-5-2.4-9.3-5.8-12-9-2.7-3.3-4.1-7.1-4.2-10.6s.9-7.4 3.8-10.5c2.9-3 7.8-6.2 13.4-7.9 5.5-1.7 13.3-2.3 19.9-2.3 6.7 0 13.6 1.1 19.9 2.4 6.2 1.3 12.5 3 17.7 5.4 5.2 2.3 10.4 5.3 13.4 8.6 3 3.2 4.6 7.3 4.5 10.8" class="hero-contour-moraine-ring"></path><path stroke-opacity=".75" stroke-width="1.82" d="M1659.9 646.3c0 6.7-4 14.1-10.2 19.7s-16.4 10.8-27.1 13.8c-10.6 3-24.5 4.2-36.8 4.2-12.3.1-25.3-1.4-37-3.7-11.6-2.3-23.8-5.7-33-10.1-9.2-4.5-17.1-10.6-22.2-16.6-5.2-6.1-7.9-12.9-8.7-19.5-.8-6.7-.9-14.5 3.9-20.6 4.9-6 14.4-12.8 25.2-15.8 10.9-3 27.5-2.9 40.1-2.2 12.6.8 24.4 4.2 35.7 6.8 11.4 2.5 22.3 4.7 32.4 8.7 10 3.9 21.4 8.9 27.7 14.8s10 13.8 10 20.5" class="hero-contour-moraine-ring hero-contour-moraine-accent"></path><path stroke-opacity=".65" stroke-width="1.9" d="M1704.9 649.4c.3 10-5.7 21.3-15.2 29.6-9.4 8.4-25.2 16.2-41.3 20.3-16.2 4.1-37.4 4.9-55.5 4.6s-36.3-2.9-53.1-6.3-34.5-7.8-47.8-14.2c-13.3-6.3-24.6-15.2-32.2-23.8-7.7-8.7-11.7-18.3-13.9-28.3-2.1-9.9-5.4-22.1 1-31.4 6.4-9.4 20.6-20.7 37.3-24.8 16.6-4.2 43.7-2.1 62.6.1 18.8 2.1 34.3 9 50.4 13s31.1 5.8 46.2 10.9c15.2 5.2 34.5 11.6 44.7 19.9 10.3 8.4 16.6 20.4 16.8 30.4" class="hero-contour-moraine-ring"></path></g><rect width="1600" height="900" fill="url(#hero-contour-moraine-veil)" class="hero-contour-moraine-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-moraine/params.json.
   Consumers set four custom properties on any ancestor:
     --pulsar-hero-bg     the ground          (default #0b0a16)
     --pulsar-hero-ink    the contour rings   (default #ffffff)
     --pulsar-accent      the index rings     (default #8a7df7)
     --pulsar-hero-speed  a rate; 2 is twice as fast, 0.5 half speed */
.pulsar-hero-contour-moraine {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--pulsar-hero-ink, #ffffff);
}
.pulsar-hero-contour-moraine .hero-contour-moraine-ground {
  fill: var(--pulsar-hero-bg, #0b0a16);
}
.pulsar-hero-contour-moraine .hero-contour-moraine-ring {
  fill: none;
  stroke: currentColor;
}
.pulsar-hero-contour-moraine .hero-contour-moraine-accent {
  stroke: var(--pulsar-accent, #8a7df7);
}
.pulsar-hero-contour-moraine .hero-contour-moraine-ground-stop {
  stop-color: var(--pulsar-hero-bg, #0b0a16);
}
.pulsar-hero-contour-moraine .hero-contour-moraine-band {
  transform-box: view-box;
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.pulsar-hero-contour-moraine .hero-contour-moraine-band-1 {
  transform-origin: 700px 780px;
  animation-name: hero-contour-moraine-band-1;
  animation-duration: calc(13s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-contour-moraine .hero-contour-moraine-band-2 {
  transform-origin: 1140px 710px;
  animation-name: hero-contour-moraine-band-2;
  animation-duration: calc(19s / var(--pulsar-hero-speed, 1));
}
.pulsar-hero-contour-moraine .hero-contour-moraine-band-3 {
  transform-origin: 1570px 640px;
  animation-name: hero-contour-moraine-band-3;
  animation-duration: calc(25s / var(--pulsar-hero-speed, 1));
}
@keyframes hero-contour-moraine-band-1 {
  from {
    transform: translate(-24px, -14px) scale(0.98);
  }
  to {
    transform: translate(24px, 14px) scale(1.02);
  }
}
@keyframes hero-contour-moraine-band-2 {
  from {
    transform: translate(24px, 14px) scale(0.98);
  }
  to {
    transform: translate(-24px, -14px) scale(1.02);
  }
}
@keyframes hero-contour-moraine-band-3 {
  from {
    transform: translate(-24px, -14px) scale(0.98);
  }
  to {
    transform: translate(24px, 14px) scale(1.02);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulsar-hero-contour-moraine .hero-contour-moraine-band-1,
  .pulsar-hero-contour-moraine .hero-contour-moraine-band-2,
  .pulsar-hero-contour-moraine .hero-contour-moraine-band-3 {
    animation: none;
  }
}

More in this family10 in Contour

All heroes