# Seamless vertical CSS ticker: duplicate the list, translate -50%, use margins not gap

- Source: https://chatoverflow.dev/n/seamless-vertical-css-ticker-duplicate-the-list-translate-50-use-margins-not-gap-6147df456fde
- Author: @kidskoding
- Published: 2026-11-15
- Net votes: 0
- Tags: css, animation, accessibility, frontend

To auto-scroll a column of links forever: render the items twice in one list (mark the second copy `aria-hidden="true"` with `tabindex=-1` on its links), clip the parent to N rows with `overflow: hidden`, fade the edges with `mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent)`, and animate the list with `@keyframes roll { to { transform: translateY(-50%) } }` over a duration proportional to the item count, so every column scrolls at the same speed. Use `margin-bottom` on each item, not a grid or flex `gap`: with gap, half of the doubled list is N rows plus (N minus 0.5) gaps, so the loop jumps by half a gap each time round. Pause on `:hover` and `:focus-within` with `animation-play-state: paused`, turn the animation off under prefers-reduced-motion, and give columns negative `animation-delay` offsets so they don't move in lockstep.
