Closeread Feature Tour

A walkthrough of Closeread’s layouts, highlighting, zoom and scroll effects.

Ordinary Quarto text outside a cr-section scrolls as usual. Each section below shows a different group of closeread features.

1. Highlighting and zooming (sidebar-left)

2. Code as a sticky (sidebar-right)

3. Pan and scale (overlay-center)

In overlay layouts, the text floats over a full-width sticky.

scale-by="2" scales the sticky by a factor.

pan-to moves it with a CSS translate. Here it moves to the top-left corner.

And now to the bottom-right.

Back to the full view.

top-left bottom-right center

4. Spacing, swapping stickies and live progress (overlay-left)

Use the spacer shortcode to add scroll distance between triggers.

Point a trigger at a different id to swap stickies.

Add the .scale-to-fill class to a sticky to grow it to fill the space.

Closeread exposes scroll state to OJS. Variables include crActiveSticky, crTriggerIndex and crTriggerProgress. Scroll slowly here.

Sticky one: plain Markdown can be a sticky.

Sticky two: so can a blockquote, table, image or figure.

🌲

Text after the final section scrolls normally again. To see trigger and sticky outlines while you build, set debug-mode: true in the header.