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: 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

De’Longhi’s Sleek Espresso Machines Are Up to $300 Off

Encountering a big, beautiful espresso machine at someone’s house feels a lot like gazing upon the countertop equivalent of a vintage Bentley, or observing the mechanics of an expensive watch. There’s that covetable air of functional sophistication; the nonchalant cool that comes with a device that showers you with at-home cappuccinos at the pull of

Reusable cup program to launch at two Columbus-area coffee shops in new year

Two Columbus-area coffee shops will begin offering a reusable cup program in the new year. Customers will be able to take a reusable cup to go, then bring it back later. They’ll get their next drink in another reusable cup while the shop washes the first one, and so on. During a news event at

These Binghamton-area coffee shops recently opened: What to know

Who doesn’t love a good cup of coffee and a sweet treat to go along with it? Espresso shots, lattes, cappuccinos, a simple cup of Joe – the options are endless and delicious. The Binghamton area has some wonderful and unique cafés, many which recently opened, with their own way of serving up the classics

Making images bigger on my website

Many of my Advent of Patterns blog posts contain visuals that accompany the text. This is different from much of my previous writing which was text-focused; technical guides, poetry, musings. When looking through my posts, I noticed that some of the details of the images were hard to grasp because they were too small. I

Sheetz locations offer free coffee from Christmas to New Year’s

People in need of a caffeine fix next week can head to Sheetz, who plans to offer free cups of Joe to celebrate the holiday season. The convenience store chain will offer customers one free self-serve coffee at over 750 Sheetz locations across Pennsylvania, Maryland, Virginia, West Virginia, North Carolina, Ohio and Michigan. The “gift

Scooter’s Coffee® Named a Top Coffee Franchise of 2024 by Entrepreneur Magazine

Nationwide Brand Celebrated for Rapid Growth, Strong Franchise Model, and Exceptional Customer Service OMAHA, Neb., Dec. 19, 2024 /PRNewswire/ — Scooter’s Coffee, is proud to announce its recognition as the No. 2 Top Coffee Franchise of 2024 by Entrepreneur Magazine. Known for its specialty coffee, fast drive-thru kiosks, and serving smiles, Scooter’s Coffee is only

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