Open-world games solved a problem years ago that law firm websites still struggle with. Once a map gets big enough, players stop wanting to walk everywhere. They have already found the place they need and want to get back to it in one move. Fast travel answers that: a list of known destinations, one tap, and you are there.
Long charge pages have the same problem. A good DUI page might cover penalties, license suspension, the court process, defenses and a set of FAQs. A reader who came for one of those sections has to scroll past everything else to find it, often on a phone, often in a hurry. Jump links are the fast travel of a long page. This post covers how to build them well, with a few lessons borrowed from how games handle travel.
Fast travel only works for places you can name
Games only let players fast travel to locations they recognize. The destination list uses short, distinct names, so a player never wonders where "Location 7" goes.
Jump links need the same clarity. The labels in a table of contents come from your section headings, so the headings have to describe what is in each section. "Penalties for a first DUI" works as a destination. "What you need to know" does not, because a reader cannot tell what they will find there.
Before writing any code, read your headings as if they were a menu. If two sound alike, or one could mean anything, rewrite it.
Put the map where players expect it
Players learn quickly where the map lives, and games keep it there. On a long charge page, place the table of contents in the same spot on every page: after the opening paragraphs and before the first section. Readers who visit several charge pages will learn to look for it.
On desktop, some sites keep the table of contents in a sticky sidebar. On phones, a sticky sidebar does not fit, so a short list near the top works better. Keep it to the main sections only. A table of contents with twenty entries becomes a second page to scroll through.
Land the player in the right spot
Nothing breaks fast travel faster than arriving inside a wall. The web equivalent is clicking a jump link and landing with the heading hidden behind a sticky header. The reader sees the middle of a paragraph and has no idea where they are.
CSS fixes this with scroll-margin-top, which tells the browser to leave space above the target when it scrolls:
html { scroll-behavior: smooth; } h2[id] { scroll-margin-top: 80px; } /* height of your sticky header plus a little room */ @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } } Set the margin to match your header height. The reduced motion query respects visitors who have asked their device to limit animation, which smooth scrolling can bother.
Give every destination a stable address
A fast travel point in a game stays put. Jump link targets should too. Each h2 needs an id, and that id becomes part of a URL that people may share or that search engines may show. Google sometimes links straight to a section of a page in its results, so these fragments can bring in visits.
Generate ids from the heading text with a simple slug function, but store them rather than regenerating them on every build. If an editor later changes "Penalties for a first DUI" to "First offense penalties", a regenerated id breaks every link that pointed at the old one. A CMS field for the anchor, filled once and left alone, avoids that.
Show players where they are
Many games show a marker on the map for the player's current spot. On a long page, you can highlight the current section in a sticky table of contents as the reader scrolls. IntersectionObserver handles this without scroll listeners that drag down performance on cheaper phones.
This is optional. For most charge pages, a plain list at the top does the job, and the highlighted version only earns its keep on very long pages viewed mostly on desktop. If you add it, test on a slow phone and make sure the page stays usable with JavaScript turned off, since the links themselves need no script at all.
Games also let players return to where they came from. On a long page, a small "Back to top" link after each section, or a button that appears after a reader has scrolled a fair distance, does the same. On phones, this saves a lot of thumb scrolling.
Keep it out of the way of the call button. On a defense firm site, the phone link matters far more than navigation helpers, and the two should never overlap on a small screen.
For a content-side view of the same problem, this piece on laying out a long charge page so readers can find their answer covers section order and headings from the writer's side.
Test it like a player would
Open the page on a phone, tap each entry in the table of contents and check where you land. Then share a link with a fragment, open it in a fresh browser and confirm it lands correctly there too. Run the page through a screen reader to make sure the table of contents is announced as a list of links and that focus moves to the target section.
More notes on what game design can teach website builders are collected in the library of UX lessons from video games.
Questions about jump links on law firm pages
Do jump links help SEO?
They can help a little. Clear headings with ids make the structure of a page easy to understand, and Google sometimes shows links to sections in its results. The bigger gain is for readers who find their answer faster.
Should every charge page have a table of contents?
Only long ones. A page with three short sections does not need a menu. A rough rule is to add one once a page has four or more main sections.
Will smooth scrolling slow down the page?
No. CSS smooth scrolling is handled by the browser and adds no script. Respect the reduced motion setting so visitors who find movement uncomfortable get an instant jump instead.
SBD Marketing works only with criminal defense law firms, one firm per city. It builds websites for defense practices and helps with SEO for the charges they defend, visibility in AI search tools and SEO audits.

