Advent of Patterns: Persistent information on scroll


This article is the twenty-first edition of the Advent of Patterns series. In this series, running from December 1st to December 24th 2024, I will document one design or programming pattern I have noticed recently. Read more about this series.

Some parts of websites continue to stay on screen as you scroll to different parts of a page.

For example, the IndieWeb wiki shows the title of a page you are viewing at the top of the page and the table of contents on the right side. This information persists as you scroll through the page:

A page on the IndieWeb wiki with a table of contents on the left side that sticks as you scroll

This is useful because the title and table of contents are useful to the user no matter where they are on the page: the title provides context on the page the user is reading (which may be especially useful if a user is jumping between tabs, as may be the case when referring to a wiki); the table of contents is for on-page navigation and may be needed at any time.

Documentation sites commonly use this pattern, too. Tables of contents regularly stick to the side of the page. Sometimes, navigation sticks to the side of the page too. With persistent tables of contents and navigation, a documentation site can offer the reader:

  1. What page they are viewing (from the title).
  2. The context of the page they are viewing (what section it appears in in the navigation structure).
  3. The content of the page they are viewing (the main body text).
  4. On-page links to sections in the document (from the table of contents).

The navigation and table of contents, as aforementioned, are valuable no matter where the user is on the page. For instance, I may be reading one documentation page and realise that I need something else. If the sidebar is sticky, I can easily find my place and skim to find the document that may be more relevant to my query.

Here is an example of GitHub’s documentation, where the navigation and table of contents are persistent:

The GitHub create a repository documentation page, with three columns: site navigation, the main content, and on-page navigation

My web reader, Artemis, groups posts by date. The date appears above the first post published on a given date. This would mean that as you scroll, the date would disappear. To prevent confusion and to ensure the user always knows when a post was published, the reader makes the date sticky. This means the date of publication of a post is always on screen above an article.

Here is what the pattern looks like:

Dominik’s blogroll uses sticky labels that correspond to the category of different blogs in his blogroll. This allows the user to maintain the context of how a blog is categorised as they scroll without having to remember the last label as they scroll.

A two-column layout with a sticky label on the left and the blog posts associated with that label on the right

In what other places does persistent information on scroll show up?



Source link

Visited 1 times, 1 visit(s) today

Related Article

Advent of Patterns: Status indicators

This article is the twenty-second edition of the Advent of Patterns series. In this series, running from December 1st to December 24th 2024, I will document one design or programming pattern I have noticed recently. Read more about this series. Knowing the status – or “state” – of a system or task is an essential

Looking Glass Coffee Being Replaced by Snohomish Coffee Company

For those who venture out to Downtown Snohomish for a cup of coffee in a warm, unique setting, we have bittersweet news. After seven years, Looking Glass Coffee has decided to shut down. The good news is Snohomish Coffee Company will take over the location and retain some of Looking Glass Coffee’s employees. Here’s a

Why Your Cup Of Coffee Feels More Expensive These Days

Stefania Pelfini, La Waziya Photography/Getty If you’re already feeling exhausted about forking over $7 for a latte, brace yourself: Coffee prices are likely to rise even more in 2025. And while there are differences between arabica and canephora (robusta) coffee species, both are taking a hit next year. Prices

This is the espresso machine Khloe Kardashian is gifting

It’s a tried and true gift for a reason: coffee accessories are simply kitchen essentials, whether you are in the market for a new espresso machine or simply want to contribute to a loved one’s mug collection. When it comes to the former, we are taking inspiration from Khloe Kardashian, whose choice of espresso machine

Western NC coffee truck relocates to Wilmington in the wake of Helene

The Honeybee Cafe truck at the Biggers Market in Wilmington. (Photo: Nate Mauldin/WWAY) WILMINGTON, NC (WWAY) — One of hundreds of businesses left impacted by Hurricane Helene is finding a new home in the Cape Fear.  The Honeybee Cafe is owned and operated by husband-and-wife duo Ted Caudle and Jessica Haugan. The couple was forced

Advent of Patterns: Shareable links

This article is the twentieth edition of the Advent of Patterns series. In this series, running from December 1st to December 24th 2024, I will document one design or programming pattern I have noticed recently. Read more about this series.. A shareable link is a link to a web resource that you can share with

0
Would love your thoughts, please comment.x
()
x