Rainbow ticker header
An endless ticker of service names, each in the next of six colours, over a serif wordmark left and two contact lines right.
Part of the style
Rainbow Slot Ticker
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/rainbow-slot-ticker/header/figma.html?palette=ba2e3a304e338df6
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/rainbow-slot-ticker/header/figma.html?palette=ba2e3a304e338df6 and pass that whole HTML document to the html_to_figma tool, so the part "Rainbow ticker header" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<style>
/* Goes after the pack's base.css */
:root {
--ink: #121212;
--ink-soft: #562110;
--paper: #d6623e;
--tray: #cc5e3c;
--tray-line: #b34e2f;
--fade: rgba(200, 85, 49, 0.92);
--shade: rgba(18, 18, 18, 0.06);
--blue: #3d0901;
--lime: #9f776e;
--green: #a67970;
--lime-text: #010000;
--lime-light: #90807c;
--lime-dark: #a77e75;
--lime-text-soft: #8d6b64;
--red: #fedacf;
--orange: #c06349;
--amber: #ab6d5e;
--pink: #9f776e;
}
</style>
<header class="header">
<nav class="header__ticker" aria-label="Services">
<ul class="header__track">
<li><a class="header__word" href="#">Shop Fronts</a></li>
<li><a class="header__word" href="#">Packaging</a></li>
<li><a class="header__word" href="#">Label Systems</a></li>
<li><a class="header__word" href="#">Menu Writing</a></li>
<li><a class="header__word" href="#">Market Stalls</a></li>
<li><a class="header__word" href="#">Recipe Books</a></li>
<li><a class="header__word" href="#">Signage</a></li>
<li><a class="header__word" href="#">Mobile Ordering</a></li>
<li><a class="header__word" href="#">Pop-up Kits</a></li>
<li><a class="header__word" href="#">Tasting Notes</a></li>
<li><a class="header__word" href="#">Price Tickets</a></li>
<li><a class="header__word" href="#">Seasonal Launches</a></li>
</ul>
</nav>
<div class="header__bar">
<a class="header__wordmark" href="#" aria-label="Pipwell, home">pipwell<span class="header__pip" aria-hidden="true"></span></a>
<address class="header__contact">
<a class="header__line" href="#">studio@pipwell.example</a>
<span class="header__line">14 Orchard Row, Lisbon</span>
</address>
</div>
</header>
<style>
.header {
padding-bottom: var(--space-l);
}
.header__ticker {
overflow: hidden;
}
.header__track {
display: flex;
width: max-content;
margin: 0;
padding: 0;
list-style: none;
animation: header-roll var(--ticker-time) linear infinite;
}
.header__ticker:hover .header__track,
.header__ticker:focus-within .header__track {
animation-play-state: paused;
}
.header__track > li {
flex: none;
}
.header__word {
display: flex;
align-items: center;
min-height: var(--hit);
padding: 0 20px;
color: var(--word, var(--ink));
font-size: var(--text-m);
text-decoration: none;
white-space: nowrap;
transition: opacity var(--quick) var(--ease);
}
.header__track > li:nth-child(6n + 1) .header__word { --word: var(--amber); }
.header__track > li:nth-child(6n + 2) .header__word { --word: var(--green); }
.header__track > li:nth-child(6n + 3) .header__word { --word: var(--blue); }
.header__track > li:nth-child(6n + 4) .header__word { --word: var(--red); }
.header__track > li:nth-child(6n + 5) .header__word { --word: var(--pink); }
.header__track > li:nth-child(6n + 6) .header__word { --word: var(--orange); }
.header__track:hover .header__word {
opacity: 0.45;
}
.header__track .header__word:hover,
.header__track .header__word:focus-visible {
opacity: 1;
outline: none;
text-decoration: underline;
text-underline-offset: 4px;
}
@keyframes header-roll {
to { transform: translateX(-50%); }
}
.header__bar {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: var(--space-l);
padding: var(--space-xs) var(--edge) 0;
}
.header__wordmark {
position: relative;
display: inline-block;
min-height: var(--hit);
padding-block: 2px;
color: var(--ink);
font-family: var(--font-serif);
font-size: var(--display);
font-style: italic;
font-weight: 700;
line-height: 0.9;
letter-spacing: -0.03em;
text-decoration: none;
}
.header__pip {
display: inline-block;
width: 0.16em;
height: 0.16em;
margin-left: 0.04em;
border-radius: var(--radius-pill);
background: var(--red);
transition: background-color var(--quick) var(--ease), transform var(--settle) var(--ease-settle);
}
.header__wordmark:hover .header__pip,
.header__wordmark:focus-visible .header__pip {
background: var(--green);
transform: translateY(-0.4em);
}
.header__contact {
display: grid;
justify-items: end;
font-style: normal;
text-align: right;
}
.header__line {
display: flex;
align-items: center;
min-height: 22px;
color: var(--ink);
text-decoration: none;
}
a.header__line {
min-height: var(--hit);
margin-block: -11px;
}
a.header__line:hover,
a.header__line:focus-visible {
color: var(--blue);
}
@media (max-width: 480px) {
.header__bar {
flex-direction: column;
gap: var(--space-m);
}
.header__contact {
justify-items: start;
text-align: left;
}
}
@media (prefers-reduced-motion: reduce) {
.header__track {
animation: none;
flex-wrap: wrap;
width: auto;
}
.header__track > li[aria-hidden] {
display: none;
}
}
</style>
<script>
(() => {
for (const track of document.querySelectorAll('.header__track')) {
for (const item of [...track.children]) {
const copy = item.cloneNode(true);
copy.setAttribute('aria-hidden', 'true');
copy.querySelector('a').tabIndex = -1;
track.append(copy);
}
}
})();
</script>