kitbash Sign in Connect agent
Components

Location reel

A sticky column with one stretched word beside full-width stills, each under a white overlay word, with run-in credits.

Part of the style

Stretched Word Stack

6 parts that belong together, with their tokens, type and rules.

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #1c0e05;
  --paper: #5381c3;
  --on-picture: #5381c3;
  --picture-ground: #1c0e05;
}
</style>

<section class="reel" aria-label="Locations">
  <a class="reel__side" href="#places">
    <svg class="reel__word" viewBox="0 -71 100 72.5" preserveAspectRatio="none" role="img" aria-label="PLACES">
      <text x="0" y="0" textLength="100" lengthAdjust="spacingAndGlyphs">PLACES</text>
    </svg>
  </a>
  <ol class="reel__list">
    <li class="reel__item">
      <a class="reel__link" href="#">
        <span class="reel__frame">
          <img class="reel__still" src="assets/desert-road.jpg" alt="A straight two-lane road running into a hazy desert" width="800" height="600">
          <svg class="reel__over" viewBox="0 -71 100 72.5" preserveAspectRatio="none" aria-hidden="true">
            <text x="0" y="0" textLength="100" lengthAdjust="spacingAndGlyphs">VIEW</text>
          </svg>
        </span>
      </a>
      <p class="reel__credits"><span class="reel__pair"><b class="reel__label">Site:</b> Salt Road 9</span> <span class="reel__pair"><b class="reel__label">Region:</b> Southern flats, 40 km of straight tarmac</span> <span class="reel__pair"><b class="reel__label">Light:</b> Flat haze until noon</span> <span class="reel__pair"><b class="reel__label">Access:</b> Road closures by request, two weeks ahead</span> <span class="reel__pair"><b class="reel__label">Notes:</b> No shade, no signal. Bring both.</span></p>
    </li>
    <li class="reel__item">
      <a class="reel__link" href="#">
        <span class="reel__frame">
          <img class="reel__still" src="assets/red-pool.jpg" alt="The corner of an empty red swimming pool with a steel ladder" width="800" height="491">
          <svg class="reel__over" viewBox="0 -71 100 72.5" preserveAspectRatio="none" aria-hidden="true">
            <text x="0" y="0" textLength="100" lengthAdjust="spacingAndGlyphs">VIEW</text>
          </svg>
        </span>
      </a>
      <p class="reel__credits"><span class="reel__pair"><b class="reel__label">Site:</b> The Lido, empty</span> <span class="reel__pair"><b class="reel__label">Region:</b> East Quarter</span> <span class="reel__pair"><b class="reel__label">Light:</b> Hard sun from the south, clean shadows by three</span> <span class="reel__pair"><b class="reel__label">Access:</b> Closed October to May</span> <span class="reel__pair"><b class="reel__label">Notes:</b> The basin is painted every spring; ask for the colour.</span></p>
    </li>
    <li class="reel__item">
      <a class="reel__link" href="#">
        <span class="reel__frame">
          <img class="reel__still" src="assets/headland.jpg" alt="A drawing of a woman with a basket on a chalk headland above the sea" width="1200" height="874">
          <svg class="reel__over" viewBox="0 -71 100 72.5" preserveAspectRatio="none" aria-hidden="true">
            <text x="0" y="0" textLength="100" lengthAdjust="spacingAndGlyphs">VIEW</text>
          </svg>
        </span>
      </a>
      <p class="reel__credits"><span class="reel__pair"><b class="reel__label">Site:</b> Gull Point</span> <span class="reel__pair"><b class="reel__label">Region:</b> North coast, chalk cliffs</span> <span class="reel__pair"><b class="reel__label">Light:</b> Soft and grey, all day</span> <span class="reel__pair"><b class="reel__label">Notes:</b> Wind turns at four. Sound team will want to know.</span></p>
    </li>
  </ol>
</section>

<style>
  .reel {
    --reel-side: clamp(96px, 19vw, 270px);
    display: grid;
    grid-template-columns: var(--reel-side) minmax(0, 1fr);
    align-items: start;
    background: var(--paper);
  }
  .reel__side {
    position: sticky;
    top: 0;
    display: block;
    height: clamp(460px, 62vw, 900px);
    color: var(--ink);
  }
  .reel__side:focus-visible {
    outline: var(--line) solid var(--ink);
    outline-offset: calc(var(--line) * -1);
  }
  .reel__word {
    width: 100%;
    height: 100%;
    overflow: visible;
  }
  .reel__word text {
    font-family: var(--font-display);
    font-size: 100px;
    font-weight: var(--weight-display);
    font-stretch: var(--width-tall);
    fill: currentColor;
  }
  .reel__list {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .reel__item + .reel__item {
    margin-top: var(--space-xl);
  }
  .reel__link {
    display: block;
    outline: none;
  }
  .reel__frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--picture-ground);
  }
  .reel__link:focus-visible .reel__frame {
    outline: var(--line) solid var(--ink);
    outline-offset: 2px;
  }
  .reel__still {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* The overlay word covers the whole still and only lightens what is under it. */
  .reel__over {
    position: absolute;
    inset: 6% 0 6%;
    width: 100%;
    height: 88%;
    overflow: visible;
    mix-blend-mode: overlay;
    opacity: 0.7;
    transition: opacity var(--slow) var(--ease);
  }
  .reel__over text {
    font-family: var(--font-display);
    font-size: 100px;
    font-weight: var(--weight-display);
    font-stretch: var(--width-word);
    fill: var(--on-picture);
  }
  .reel__link:hover .reel__over,
  .reel__link:focus-visible .reel__over {
    opacity: 1;
  }
  .reel__credits {
    margin: 0;
    padding: var(--space-s) var(--edge) 0;
  }
  .reel__pair {
    margin-right: var(--gap);
  }
  .reel__label {
    font-stretch: var(--width-label);
  }

  @media (max-width: 40rem) {
    .reel {
      grid-template-columns: 1fr;
    }
    .reel__side {
      position: static;
      height: var(--word-band);
    }
    .reel__word text {
      font-stretch: var(--width-word);
    }
  }
</style>

Similar components

Single print viewer

Single print viewer

Treated cover rail

Treated cover rail

Red flood split

Red flood split

Floating card spotlight

Floating card spotlight

Curling film ribbon

Curling film ribbon

Scattered letter case

Scattered letter case

Matted device wall

Matted device wall

Photo ring

Photo ring