Tilted word ticker
A slightly tilted band of heavy words with small spinning ovals between them, rolling endlessly.
Part of the style
Speed Line Ovals
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/speed-line-ovals/ticker/figma.html
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/speed-line-ovals/ticker/figma.html and pass that whole HTML document to the html_to_figma tool, so the part "Tilted word ticker" 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
<section class="ticker" aria-label="Coming up">
<div class="ticker__band">
<div class="ticker__track">
<span class="ticker__item">pickled plums</span>
<img class="ticker__pic" src="assets/strawberries.jpg" alt="" width="800" height="573">
<span class="ticker__item">a garage in May</span>
<img class="ticker__pic" src="assets/lemons.jpg" alt="" width="800" height="662">
<span class="ticker__item">twelve seats</span>
<img class="ticker__pic" src="assets/fish.jpg" alt="" width="800" height="634">
<span class="ticker__item">bring a fork</span>
<img class="ticker__pic" src="assets/jug.jpg" alt="" width="800" height="643">
</div>
</div>
</section>
<style>
.ticker {
overflow: hidden;
padding: var(--space-xl) 0;
}
.ticker__band {
rotate: -4deg;
margin: 0 -4%;
}
.ticker__track {
display: flex;
align-items: center;
width: max-content;
animation: ticker-roll 36s linear infinite;
}
.ticker__band:hover .ticker__track {
animation-play-state: paused;
}
.ticker__item {
flex: none;
padding: 0 var(--space-l);
font: 900 clamp(44px, 8vw, 112px) / 1 var(--font-display);
letter-spacing: var(--track-display);
white-space: nowrap;
}
.ticker__pic {
flex: none;
width: clamp(64px, 9vw, 128px);
height: clamp(48px, 6.4vw, 92px);
border-radius: var(--radius-oval);
background: var(--field);
object-fit: cover;
animation: ticker-spin 9s linear infinite;
}
.ticker__pic:nth-of-type(even) {
animation-direction: reverse;
}
.ticker.is-paused .ticker__track,
.ticker.is-paused .ticker__pic {
animation-play-state: paused;
}
@keyframes ticker-roll {
to { transform: translateX(-50%); }
}
@keyframes ticker-spin {
to { transform: rotate3d(1, 1, 1, 360deg); }
}
@media (prefers-reduced-motion: reduce) {
.ticker__track,
.ticker__pic {
animation: none;
}
}
</style>
<script>
(() => {
const watch = new IntersectionObserver((entries) => {
for (const entry of entries) entry.target.classList.toggle('is-paused', !entry.isIntersecting);
});
for (const root of document.querySelectorAll('.ticker')) {
const track = root.querySelector('.ticker__track');
for (const item of [...track.children]) {
const copy = item.cloneNode(true);
copy.setAttribute('aria-hidden', 'true');
track.append(copy);
}
watch.observe(root);
}
})();
</script>