Map and motion

Neighbourhood chips

A label and a row of pill links, one per area, with a count. There are two versions: a swipe slider (recommended) and a plain scrolling row.

Examples

Swipe slider (recommended)

Drag or swipe the chips, or use the arrow keys. It keeps moving a little after you let go, and a click still opens the link. Built with Swiper through swiper-init.js.

Plain scrolling row

The same chips in a .scroll-row. It needs no JavaScript and no Swiper, so use it when you do not want the extra files. The visitor scrolls with a wheel, a trackpad or a touch swipe.

How to use the swipe version

  1. Add Swiper's CSS and JavaScript from the CDN, then assets/js/swiper-init.min.js (see Swiper hero slider).
  2. Inside .hood-strip, add <div class="swiper" data-swiper="chips"><div class="swiper-wrapper"> ... </div></div>.
  3. Give each chip both classes: class="swiper-slide hood-chip".
  4. To use the plain row instead, put the chips in <div class="scroll-row"> and give them only hood-chip. No other change is needed.

On phones the label sits above the row. If Swiper does not load, the swipe version falls back to a row that scrolls sideways.

Classes and attributes

NamePurpose
.hood-stripWrapper: label and row side by side.
.hood-strip-labelBold label on the left.
.swiper + data-swiper="chips"The swipe slider. Each chip is a .swiper-slide with .hood-chip.
.scroll-rowThe plain scrolling row (shared component). Use it instead of the slider.
.hood-chipOne pill link. Put the count in <small>. Turns green on hover.