Skip to content
IndexRequest a UIAboutContact

Infinite Scroll & Load More

A list that loads the next batch as you reach the bottom, with a Load more button mode and a clear end state.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Clean UI mockup of a list screen showing eight rows of items with small thumbnails, the last two rows as grey skeleton placeholders with a soft shimmer, below them a small caption Loading more and a spinner, and in a second state a centred outlined button Load more, and at the end a quiet line That's everything, light theme, flat modern style. Negative: heavy shadows, gradients, text errors, clutter. Reduced motion: static skeletons.

About this pattern

Definition

Infinite scroll appends the next page of items when the reader nears the end of the list, using an observer on a sentinel element. It suits feeds and browsing, but it needs three things to stay usable: a loading cue, a visible end, and a button alternative so people can reach the footer and keyboard users are not trapped.

Purpose & UX principles

  • Watch a sentinel just below the list; request the next page before the reader reaches the end.
  • Show skeleton rows while loading and a clear message when there is nothing more.
  • Offer a Load more button, especially for long lists and for people using keyboards.

Interaction states

  • Auto and Button modes, a scrolling list of three pages and a reset.

Motion specification

  • Each page takes 700ms to load with skeleton rows shown.
  • Reduced motion: skeletons do not pulse.

Responsive behaviour

  • Keep the footer reachable; endless feeds can bury it.
  • Preserve scroll position and the count so a refresh does not lose the place.

Code

HTML
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Mode"><button data-p="0" aria-pressed="true">Auto</button><button data-p="1" aria-pressed="false">Button</button></div><div class="sc" id="sc" tabindex="0" aria-label="Scrollable list"><ul id="ls"></ul><div id="sn" class="sn"></div></div><p class="out" id="out" role="status"></p></div>

Related patterns

Skeleton Loading

↗
Skeleton LoadingLoading & Progress

Pagination

↗
PaginationNavigation

Upload Progress & Retry

↗
Upload Progress & RetryLoading & Progress