Skip to content

Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages

v2.1 (wip): study of the latest 100 Awwwards Sites of the Day

Leonxlnx5f19173d4724
diff --git a/skills/taste-skill/SKILL.md b/skills/taste-skill/SKILL.md
index 3cf8e62..8dbc230 100644
--- a/skills/taste-skill/SKILL.md
+++ b/skills/taste-skill/SKILL.md
@@ -246,7 +246,7 @@ not finished. Order of work:
the width the page has set up: when its text sits in the left half, the right half holds its
picture, its second column, its list or its figure, never nothing. Asymmetry lives inside the grid,
never in the frame: a void is placed only when something closes it on the far side. No stretch of
- the page taller than about half a screen holds nothing at all; sections are 120–220px apart on
+ the page taller than about half a screen holds nothing at all; sections are 120–240px apart on
desktop. Every section the visitor came for opens with a heading that names it, and the first
screen carries the page's title in an `h1`. These are what readers name first when a page looks
wrong ("no clear title", "random empty space", "everything is pushed to one side"), and the
@@ -381,7 +381,7 @@ Short form. Numbers are from the study unless marked as house style.
blocks share two or three left edges on the whole page.
- Asymmetry inside the grid, never in the frame: the two outer margins are equal, and an off-centre
heading is answered by something at the far side of the grid.
-- The gap between sections is clearly larger than any gap inside one: 120–220px on desktop.
+- The gap between sections is clearly larger than any gap inside one: 120–240px on desktop (the study's median is about 240).
- Each section has a different composition from its neighbours; none is a card grid.
**Colour**
diff --git a/skills/taste-skill/assets/base.css b/skills/taste-skill/assets/base.css
index c407596..75915d3 100644
--- a/skills/taste-skill/assets/base.css
+++ b/skills/taste-skill/assets/base.css
@@ -26,13 +26,18 @@
--section: clamp(5rem, 12vw, 13rem); /* space between sections */
--radius: 0px; /* one radius for the whole page: 0, or large, decided once */
- --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
- --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
- --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
+ --ease-out: cubic-bezier(0.22, 1, 0.36, 1); /* entrances, moving hovers, UI under 600ms */
+ --ease-expo: cubic-bezier(0.16, 1, 0.3, 1); /* reveals of 800ms and longer, line rises, openings */
+ --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1); /* wipes, panels, things that travel while visible */
+ --ease-soft: cubic-bezier(0.33, 1, 0.68, 1); /* slow scale and drift on photographs */
+ --ease-exit: cubic-bezier(0.55, 0.055, 0.675, 0.19); /* something leaving for good, short */
--t-press: 140ms;
--t-hover: 180ms;
--t-ui: 240ms;
--t-reveal: 800ms;
+ --t-open: 1200ms; /* picture openings and clip wipes */
+ --stagger-line: 90ms;
+ --stagger-item: 70ms;
}
/* ---------- reset ---------- */
diff --git a/skills/taste-skill/library/motions.json b/skills/taste-skill/library/motions.json
index 3943594..1583090 100644
--- a/skills/taste-skill/library/motions.json
+++ b/skills/taste-skill/library/motions.json
@@ -22,7 +22,7 @@
{
"id": "index-preview",
"name": "Index with preview",
- "description": "Rows of text are the navigation through the work; pointing at a row brings up its image in one fixed frame and dims the other rows. On touch screens each row shows its image inline instead. Fast and exact (about 240ms crossfade), no lag behind the pointer. Recipe: 'List with image preview' in references/motion.md."
+ "description": "Rows of text are the navigation through the work; pointing at a row brings up its image in one fixed frame and dims the other rows. On touch screens each row shows its image inline instead. Fast and exact (about 240ms crossfade), no lag behind the pointer. Recipe: 'Index with preview, anchored to the row' in references/motion.md."
},
{
"id": "curtain-footer",
@@ -53,5 +53,40 @@
"id": "stillness",
"name": "Stillness",
"description": "No showpiece. The page is simply there, instantly, and the discipline is the statement. Motion is limited to exact feedback: a 140ms press on the button, a 180ms colour change on links, focus rings that appear without delay. Do not add a load animation or scroll reveals to this direction."
+ },
+ {
+ "id": "opening-window",
+ "name": "Opening window",
+ "description": "A type screen hands over to the one great photograph: the picture first shows as a window about 45% of the width in the middle of a held stage and opens to full-bleed over about one screen of scroll, while the image inside settles from 1.15 scale. Scroll-linked and linear, so the reader sets the pace; it is fully open after three quarters of the hold and rests a moment before the page moves on. Use it once, for the picture that carries the subject. Where scroll timelines are unsupported, or under reduced motion, the picture is simply a full-bleed screen. Recipe: 'Opening window' in references/motion.md."
+ },
+ {
+ "id": "ink-fill",
+ "name": "Ink-fill statement",
+ "description": "One statement of three to five lines at 32px or more starts at 45% ink and fills to full ink line by line as it rises from three quarters of the way down the screen to just past half way, so the reading pace follows the scroll. Every word is readable before it fills; the fill only sets the rhythm. Once per page, never on body copy, never on a headline the visitor needs at once. Full ink without scroll timelines or under reduced motion. Recipe: 'Ink fill' in references/motion.md."
+ },
+ {
+ "id": "sheet-over",
+ "name": "Sheet over a held picture",
+ "description": "A full-bleed photograph holds its place for one screen and the next chapter, an opaque sheet in the page ground carrying its heading at the top edge, slides up over it like a page being turned. The chapter change is read, not just seen, and nothing is hijacked: the photograph is a 100svh figure with position: sticky; top: 0, followed by a section with its own background and a higher stacking order. Hold for one screen at most, use it at one or two chapter changes, and give each held photograph a caption so the held screen carries a line of text."
+ },
+ {
+ "id": "sideways-gallery",
+ "name": "Sideways gallery",
+ "description": "A short set of pictures (eight or fewer: rooms, kitchens, pieces) moves sideways while the vertical scroll holds the stage, one pixel of scroll for one pixel of travel, and the hold ends the moment the last picture reaches the margin. Only on wide screens with motion allowed and only when the row is under three screens long; phones, reduced motion and longer rows get the native drag row with snapping. Focusing a link scrolls its picture into view, and the only copy of a call to action never sits inside the moving row. Recipe: 'Sideways gallery' in references/motion.md."
+ },
+ {
+ "id": "pushed-line",
+ "name": "Pushed line",
+ "description": "One line of very large type, the name or the claim, is pushed sideways by the scroll rather than by a clock: it travels from 12% right to 12% left of its place while it crosses the screen, linear and locked to the scrollbar, and reads whole at the middle of its run. One per page, never across running text, and the words must never be cropped at the moment the line sits in the middle of the screen. Build with animation-timeline: view() on the line and a translateX keyframe; static where scroll timelines are unsupported and under reduced motion."
+ },
+ {
+ "id": "rolling-figures",
+ "name": "Rolling figures",
+ "description": "For a page whose case is a handful of numbers (a report, a fund, a practice with a founding year): three or four figures at display size roll each digit up to its value once as they come into view, about 1.1 seconds on a strong ease-out, the columns 70ms apart. Tabular figures, the real number kept in the text for screen readers and search, never in running text and never for a value that changes after load. Set at its value under reduced motion. Recipe: 'Rolling figures' in references/motion.md."
+ },
+ {
+ "id": "carried-picture",
+ "name": "Carried picture",
+ "description": "Between the index and a case page, the picture the visitor clicked travels into place as the new page's hero while the old page fades out in 200ms and the new one rises in, all within 480ms, using the browser's own cross-document view transitions with no library and no full-screen curtain. Give the card picture and the hero the same view-transition-name; each name appears once per page. Browsers without view transitions simply navigate; reduced motion turns it off. Recipe: 'Page to page' in references/motion.md."
}
-]
\ No newline at end of file
+]
diff --git a/skills/taste-skill/references/app-screens.md b/skills/taste-skill/references/app-screens.md
index fbb99ea..e0024be 100644
--- a/skills/taste-skill/references/app-screens.md
+++ b/skills/taste-skill/references/app-screens.md
@@ -869,7 +869,7 @@ td.num, th.num { text-align: right; }
## 12. The phone
The study has no phone screens. This section is house rule, built from the skill's phone rules
-(`layout.md` §8) and from what the desktop screens imply. The inspector fails a sidebar that still
+(`layout.md` §9) and from what the desktop screens imply. The inspector fails a sidebar that still
takes more than 30% of a phone's width.
- **Navigation folds.** The sidebar becomes a 48px top bar with the screen's name, a menu button that
diff --git a/skills/taste-skill/references/imagery.md b/skills/taste-skill/references/imagery.md
index d66fb16..515d1d6 100644
--- a/skills/taste-skill/references/imagery.md
+++ b/skills/taste-skill/references/imagery.md
@@ -17,6 +17,7 @@ how to crop and place them, and what to do when there are none.
9. Type and colour alone
10. Markup and credits
11. Video
+12. Where pictures and footage go
## 1. What the study measured
@@ -32,6 +33,11 @@ how to crop and place them, and what to do when there are none.
3%.
- Among the 54 sites the panel scored under 6.8, legibility (text lost over a busy image, or too
little contrast) was named as a weakness in 13.
+- In the October 2026 study of 91 Awwwards Sites of the Day (section 12), the median page carries 7
+ pictures (top sites 8, the lowest 2) and footage appears on 42% of sites (half of the top ones, one
+ of the 16 lowest).
+- Pictures come in whole screens: 42% of scrolled screens hold none and 19% are 90% picture or more.
+- 94% of pictures have square corners, and on a typical site two ratios hold three-quarters of them.
## 2. Decide what imagery exists
@@ -198,6 +204,7 @@ real footage with `--video` (section 11).
- **No frames:** no borders, no shadows, no device mock-ups, no browser chrome around pictures.
- **Captions** are one short line in the small size and soft ink under the image, left-aligned to its
edge. Most images need none.
+- Where each picture goes on the page, how large, and what the phone does with it: section 12.
## 6. Treatment
@@ -339,12 +346,17 @@ shorter clip. Licences, credits and honesty work exactly as for pictures (sectio
- **Short:** 5 to 20 seconds that loop without a visible jump: water, smoke, a turning drum, traffic,
leaves, a crowd from far away. Watch it to the end before choosing.
-- **Light:** under about 5 MB for a section and 10 MB for a hero. 720p is plenty behind type.
+- **Light:** under about 5 MB for a section and 10 MB for a hero. In the study sources are 1920×1080
+ (the commonest) or 1280×720, median length 10 s; 720p is plenty behind type. For a full-bleed hero,
+ cut a tall 720×1280 version for the phone, or set `object-position` on the subject.
- **Clean:** no slate, title card, logo, watermark or burned-in caption. NASA and archive films often
open with a slate, and the source's poster frame may be that slate. No recognisable person who could
be taken for the client's staff or customers.
- **Never the client's own:** a found clip of a roastery is not this roastery.
-- **One per page, two at most.** A page of moving tiles is noise.
+- **Found clips: one per page, two at most.** A found clip shows the world around the client; a
+ third makes a theme of it. The project's own footage can carry more: in the study a site with
+ footage carries a median of three or four clips. Either way, **one moving picture per screen**;
+ two loops running side by side are noise.
**On the page.**
@@ -356,22 +368,420 @@ shorter clip. Licences, credits and honesty work exactly as for pictures (sectio
- The poster shows before the clip plays, on slow connections and under reduced motion, so it must
work as a picture on its own. If the source's still is a slate or a blur, take a frame from the clip
yourself or use a found picture.
-- Under `prefers-reduced-motion: reduce`, stop it and show the poster:
+- In the study only 31% of clips had a poster, and the panel recorded the blank and grey boxes
+ before they played as faults. Here every clip has one.
+- Play a clip only while it is in view, and none under `prefers-reduced-motion: reduce`, where the
+ poster shows instead:
```html
<script>
const calm = matchMedia('(prefers-reduced-motion: reduce)');
- for (const v of document.querySelectorAll('video[autoplay]')) {
- const sync = () => { if (calm.matches) { v.removeAttribute('autoplay'); v.pause(); v.load(); } else { v.play().catch(() => {}); } };
- sync(); calm.addEventListener('change', sync);
- }
+ const clips = [...document.querySelectorAll('video[autoplay]')];
+ const inView = new Set();
+ const sync = (v) => {
+ if (calm.matches) return;
+ if (inView.has(v)) v.play().catch(() => {}); else v.pause();
+ };
+ const settle = () => {
+ for (const v of clips) {
+ if (calm.matches) { v.removeAttribute('autoplay'); v.pause(); v.load(); }
+ else if (inView.has(v)) v.play().catch(() => {});
+ }
+ };
+ const watch = new IntersectionObserver((entries) => {
+ for (const e of entries) {
+ if (e.isIntersecting) inView.add(e.target); else inView.delete(e.target);
+ sync(e.target);
+ }
+ }, { threshold: 0.2 });
+ clips.forEach((v) => watch.observe(v));
+ settle();
+ calm.addEventListener('change', settle);
</script>
```
- Crop and place it like a photograph (sections 5 and 6): `object-fit: cover`, one ratio, square
corners, no frame, a ground-coloured `background-color` while it loads.
-- Never under body text. A headline over a clip gets the same neutral scrim as text on a photograph,
- and nothing lies on top of a headline or a statement.
+- Never under body text. On a clip put a headline, one line and one action at most, and check the
+ contrast where they sit across the whole loop, not only on the poster: footage that is dark at
+ one second can be bright at the next. If any frame drops below 4.5:1 (3:1 for 24px and up), use the
+ scrim in section 6 or move the text off the clip. Nothing lies on top of a headline or a statement.
- It is motion: let it be the page's one moving thing, or sit in a section where nothing else moves.
- Credit it with the pictures: `--credits` prints one footer line for both ("Pictures and footage:")
and the list for the report, with each clip's length.
+- Where footage goes (hero background, inline loop, the frame that grows, a docked card), and what
+ the study measured about it: section 12. Nothing that matters plays on hover only, and a full film
+ with sound sits behind a play button that opens a player with controls.
+
+## 12. Where pictures and footage go
+
+What strong pages do with their pictures, measured on the latest 100 Awwwards Sites of the Day
+(10 July to 17 October 2026, captured at 1440×900 and 390×844). 91 were usable. A panel described where
+every picture sat and scored each site the Awwwards way, and a script measured how much of each screen
+is picture. "Top" means a panel score of 7.5 or more (36 sites), "lowest" under 7.3 (16 sites). The
+scores sit close together (6.7 to 7.9) and a single score carries about half a point of noise, so read
+the links between a placement and the score as leanings, not laws.
+
+### How much of each screen is picture
+
+- **All or nothing.** Counting photographs, footage and picture backgrounds (not canvases), the median
+ scrolled screen in the study is 16% picture, but few screens sit near it: 42% hold no picture and
+ 19% are 90% picture or more. Only 19% fall between 20% and 60%. A picture either leads its screen or
+ stays out of it.
+- **About a third, with rests.** On the 67 sites that put pictures in the page, the average screen is
+ 36% picture (middle half 18–69%). Top sites sit at 30% and leave 28% of their screens with no picture
+ at all: screens of type are the rests between picture screens.
+- **The first screen.** A picture covers at least half of it on 41% of the sites and nearly all of it
+ on 32%. A full-bleed photograph or film is the whole first screen on 29%; footage is the main hero
+ picture on about a quarter.
+- **A scene is not a picture.** 66 of the 91 keep a WebGL canvas over at least 30% of the screen, so
+ counting canvases the median screen is entirely covered. On the lowest-scored sites that canvas is
+ often all there is: the five lowest usable sites (6.7 to 7.0) draw everything in it and put two
+ pictures at most in the page.
+- **Text is small in area.** The median screen is 8% text. Type is set large and sparse around the
+ pictures, not packed beside them.
+- **Off-centre.** Measured per section across the crawled sites, pictures sit to the left or right
+ 939 times, centred 273 times, and full-bleed or behind text 269 times.
+- **The phone carries more picture,** not less: 19% of a phone screen at the median, and 27% of the
+ first phone screen against 17% on desktop. Full-bleed pictures re-crop to portrait and fill the
+ screen; splits put the picture first at full width.
+
+### How many
+
+- **Seven pictures per page** at the median (middle half 1–25). Top sites 8 (middle half 4–27), lowest
+ 2 (0–4). The floor in SKILL.md step 6, four and usually six to twelve, is the strong half of the
+ study.
+- **Footage on 42% of sites:** on half of the top sites and half of the middle band, and on one of the
+ 16 lowest. A site with footage carries a median of three or four clips.
+- **Three to five placements.** Sites that use two or fewer of the placements below average 7.31;
+ sites that use three or more average about 7.5. The median top site uses four, the median lowest
+ site one. Where the pictures go changes from section to section on a designed page.
+
+### The placements, ranked
+
+| Placement | Sites (of 91) | Top (of 36) | Lowest (of 16) | Mean score with / without |
+| --- | --- | --- | --- | --- |
+| Split: picture in a half or two-thirds | 32 | 17 | 2 | 7.50 / 7.38 |
+| Horizontal gallery | 32 | 13 | 4 | 7.44 / 7.41 |
+| Full-bleed band between sections | 31 | 14 | 3 | 7.48 / 7.40 |
+| Full-bleed picture or film as the first screen | 26 | 10 | 3 | 7.45 / 7.41 |
+| Uneven mosaic | 25 | 11 | 1 | 7.49 / 7.40 |
+| Picture held while text scrolls | 23 | 12 | 1 | 7.52 / 7.39 |
+| Footage behind text | 22 | 8 | 2 | 7.46 / 7.41 |
+| Even grid | 20 | 11 | 2 | 7.48 / 7.41 |
+| Scattered collage | 19 | 6 | 3 | 7.47 / 7.41 |
+| Panel sliding over a held picture | 19 | 8 | 2 | 7.48 / 7.41 |
+| Inset frame that grows | 17 | 7 | 1 | 7.52 / 7.40 |
+| One picture centred on a field | 14 | 5 | 3 | 7.38 / 7.43 |
+| Cut-out object on a flat field | 13 | 7 | 1 | 7.57 / 7.40 |
+| Index with hover preview | 12 | 6 | 1 | 7.49 / 7.41 |
+| 3D gallery | 12 | 4 | 4 | 7.30 / 7.44 |
+| Small card docked in a corner | 11 | 5 | 1 | 7.47 / 7.42 |
+| Picture inside or in front of display type | 11 | 7 | 1 | 7.50 / 7.41 |
+| One small picture beside a statement | 8 | 5 | 0 | 7.56 / 7.41 |
+| Small pictures between words | 6 | 4 | 0 | 7.52 / 7.42 |
+
+- Found on top pages more than their share and almost never on the lowest: the split, the picture held
+ while text scrolls, the uneven mosaic, the inset frame that grows, the cut-out on a flat field, and
+ pictures set with the type (the last three rows together: 24 sites, 16 of them top, 1 lowest).
+- The horizontal gallery is common in every band and lifts nothing. Use it where browsing is the point.
+- The 3D gallery is the one placement that goes with lower scores, and with the lowest usability in the
+ table (5.9 against 6.35 for all sites).
+
+### Each placement
+
+Each entry gives when to use it, the geometry at 1440×900, the phone version and how it fails.
+
+**Split: picture in a half or two-thirds**
+
+- *When.* A claim and the picture that proves it. The commonest way strong pages pair words and a
+ picture.
+- *Geometry.* The picture takes 42% of the width at the median (middle half 33–49%), up to two-thirds,
+ at the full height of its section: 680×850 and 720×900 are typical. 38% of these pictures are
+ portrait, mostly 4:5 or 3:4. The text starts on the 50% line (x = 720) or on the line where the
+ picture ends, top-aligned or docked low, not centred in its half. Let the picture touch the viewport
+ on its outer side: only about 30% do in the study, and the ones with margin on every side read as
+ placed by default (section 5). Alternate sides only across three or more rows.
+- *Phone.* Picture first at full width (4:5, or 4:3 for a landscape), text under it.
+- *Fails.* The same split in three sections running; a picture floating in the middle of its half; a
+ text column narrower than about 30 characters.
+
+**Full-bleed band**
+
+- *When.* One picture carries a whole screen between type screens: the place, the work, the object at
+ full size. One every three or four screens at most.
+- *Geometry.* 100% wide and one to one and a half screens tall (median 900px at 1440×900, middle half
+ 890–1,170px; ratios 1.4 to 1.9). For a slow parallax the picture is oversized in its frame by 4–10%
+ (32–72px a side in the study) and travels no further than that. Text is a headline and one line, or
+ nothing, docked 32–64px in from a corner over the calm part of the picture.
+- *Phone.* A portrait re-crop that fills the screen, with `object-position` set on the subject; the
+ text moves to the bottom quarter.
+- *Fails.* 11–14px white text over a bright area; three bands with nothing between them; a band that
+ only decorates.
+
+**Picture held while text scrolls**
+
+- *When.* A list, steps or a long paragraph that all belong to one picture. If the picture changes for
+ each item, it is the index with a preview, below.
+- *Geometry.* A 100vh sticky stage inside a section two to six screens long (runways of 1,800–5,400px
+ are typical in the study). The picture holds one half (685×880 is a typical portrait), two-thirds, or
+ the whole screen with the text passing over it on a solid panel. Text rows about 150px apart, so two
+ or three are in view at once.
+- *Phone.* Release the stick: picture first, text under it. If the picture swaps per item, keep it as
+ a band in the top 40% of the screen.
+- *Fails.* Long runways where the text has faded out and the held picture is all that is left (the
+ panel recorded several empty stages on phones); body copy set on the held picture.
+
+**Inset frame that grows**
+
+- *When.* Once per page, for the film or picture the page is about, as the move from type into
+ picture.
+- *Geometry.* The frame starts centred at 35–50% of the width (549×366, 710×480 and 864×540 in the
+ study) or as a 16px inset round a full screen, and grows to the full width and height over
+ 720–2,700px of scroll. Any corner radius goes to 0 as it reaches the edges. A headline sits above it
+ before it starts; nothing else on the screen moves while it grows.
+- *Phone.* Start at full width inside the 16px margins and grow to a full-bleed portrait, or skip the
+ growth.
+- *Fails.* The growth is the only thing on screen for three scrolls; a loading spinner or a blank box
+ in the first frame (give it a poster, start loading before it enters); used twice.
+
+**Uneven mosaic**
+
+- *When.* A body of work, or one place seen several ways: five to twelve pictures.
+- *Geometry.* Two columns, or rows of three on a 24-column grid. Two or three picture widths (for
+ example 32%, 48% and 65% of the width, or 5, 7 and 12 columns), neighbours offset vertically by
+ 120–190px, 130–450px between rows, one or two ratios, a caption under each.
+- *Phone.* One column alternating full width and about 70% width, or two columns of 120–180px tiles
+ that keep the offsets.
+- *Fails.* Random ratios with random offsets, which read as a stock dump. Captions in 9–12px mono with
+ index numbers, the award-site habit: here the caption is one line in the text face at body size, with
+ no number.
+
+**Horizontal gallery**
+
+- *When.* A set people browse in any order: products, rooms, events, a team.
+- *Geometry.* Cards 25–35% of the width (435×326 with 20px gaps at 1440: three in full and a fourth
+ cut by the edge), or a strip at one fixed height with mixed widths (576px tall in the study), or a
+ slider whose centre slide is about 73% of the width with 170–180px of each neighbour showing. Always
+ cut by the right edge so it reads as more. A marquee of pictures moves slowly: 60–120s per loop.
+- *Phone.* One card at 75–80% of the width (290–300px of 390) with the next one showing; swipe.
+- *Fails.* Arrows and no drag or swipe; a marquee of things people need to read; a carousel holding the
+ page's one important picture.
+
+**Panel sliding over a held picture**
+
+- *When.* A change of chapter: the picture holds, and the next section rises over it.
+- *Geometry.* The picture is sticky at 100vh; the next section's ground slides up over it at full width,
+ its top edge straight or shaped from the subject (the study has the arch of a building's windows).
+ Here it is a solid panel with square corners: no rounded sheet tops, no frosted glass.
+- *Phone.* Unchanged.
+- *Fails.* Decks of five or six cards whose earlier cards linger as slivers; stacking for its own sake.
+
+**Even grid**
+
+- *When.* An archive only (layout.md §5): a shop range, the team, a menu, the full list of work.
+- *Geometry.* Two, three or four across, equal cells, 8–16px gaps, one ratio (4:5 is the commonest),
+ the caption under each picture.
+- *Phone.* Two across for products, one for work and people.
+- *Fails.* Three equal cards as "features". Cards with a dark gradient at the foot so the label can sit
+ on the picture, common in the study: here the label goes under the picture.
+
+**Index with hover preview**
+
+- *When.* A list of eight or more projects or clients where the names matter as much as the pictures.
+- *Geometry.* Rows on a 45–80px pitch, names at 30–60px. One picture at a time, about a third of the
+ width at 16:9 or a portrait 300–450px tall, at a fixed place (the right half from the 50% line, or
+ the centre), swapped within 0.3s. A version that needs no mouse: the names scroll past a picture
+ fixed at the centre, and the picture shows whichever name is crossing it.
+- *Phone.* No hover. Give each row a thumbnail about 100px wide, or use the scroll version.
+- *Fails.* Pictures that never appear on a touch screen. Rows divided by hairlines, the award-site
+ habit: here rows are separated by space, and the active row by ink or a change of ground.
+
+**One picture on a field, or one small picture beside a statement**
+
+- *When.* A pause in the page: a single portrait or object. Or a small picture that gives a statement
+ a face.
+- *Geometry.* A single centred picture at 3:4 and 75% of the viewport height, on a ground taken from
+ the picture. Or a small picture 7–26% of the width (108–374px) beside, above or between the lines
+ of a 48–136px statement, aligned to one of its lines.
+- *Phone.* The picture above the statement at 60–100% of the width.
+- *Fails.* Used as the default for every picture: a picture with equal margins on all sides reads as
+ placed by default (section 5).
+
+**Small pictures between words**
+
+- *When.* A statement about the things themselves (materials, people, products), on a screen of its
+ own.
+- *Geometry.* Two to four chips in the statement, from the cap height to three-quarters of the type
+ size tall and one to one and a half times as wide (50×46px in a 60px line; 113×75px between the two
+ words of a 150px name), all from one shoot, square corners. Give them a width and height so the lines
+ do not jump while they load.
+- *Phone.* Keep them inline at the height of the text.
+- *Fails.* More than four; chips from different shoots; a chip that carries information the words do
+ not.
+
+**Picture inside or in front of display type**
+
+- *When.* The object is the subject: a product, a building, a person.
+- *Geometry.* The object stands in front of 150–200px display type and covers one or two letters; or a
+ small picture window sits inside a block of type and later opens into the next screen; or a line of
+ type runs behind a square picture. The word must still read.
+- *Phone.* Keep it, with the type at about 15vw, and check the word still reads.
+- *Fails.* Covering so much that the word is lost; type displaced or glitched by the picture.
+
+**Cut-out object on a flat field**
+
+- *When.* Products and objects. The highest mean score in the table, on 7 of the 36 top sites.
+- *Geometry.* The object at 35–60% of the width on a flat ground taken from its own colours, standing
+ on the bottom edge or running off one side, with the type behind or beside it.
+- *Phone.* The object at 80–90% of the width under the headline.
+- *Fails.* A render floating in a void with no ground; a drop shadow added to a cut-out (no resting
+ shadows here; keep a contact shadow only if it was photographed).
+
+**Scattered collage**
+
+- *When.* Archives, ephemera, a festival of many small things. Sparingly: it is about as common on the
+ lowest pages as on the top ones.
+- *Geometry.* Six to sixteen pictures of 100–300px at a few sizes around a centred heading, never over
+ it.
+- *Phone.* Re-stack as overlapping pairs in one column.
+- *Fails.* Tilted prints and stickers with offset shadows, common in the study and not a treatment
+ here (section 6); pictures crossing the text.
+
+**Small card docked in a corner**
+
+- *When.* A standing pointer to the reel or to the next thing.
+- *Geometry.* About 216×144 to 240×140, 30–43px from the corner; one per page.
+- *Phone.* Drop it, or move it into the flow.
+- *Fails.* Content scrolling under it; a second one.
+
+**3D gallery**
+
+- *What.* Pictures on a ring, sphere, helix or tunnel in a WebGL scene, turned by the wheel or by
+ dragging.
+- *In the study.* 12 sites, 4 of them among the 16 lowest; mean score 7.30 against 7.44, usability 5.9
+ against 6.35.
+- *Here.* Do not build one. Show the same pictures as an index with previews or a horizontal gallery.
+
+### Footage
+
+**What the study measured.**
+
+- Footage on 38 of 91 sites (42%): 18 of the 36 top sites, 19 of the 39 in the middle, 1 of the 16
+ lowest. A site with footage carries a median of three or four clips (middle half 1–8).
+- Footage covers at least half of the first screen on about a quarter of the sites, and is full-bleed
+ on nearly all of them.
+- Clips are short: median 10s, middle half 5–14s; 61% run 10s or less and 88% 20s or less.
+- Every decorative clip is muted, loops, plays inline and has no controls. The autoplay attribute is on
+ 44% of clips; the rest are started by script, mostly as they come into view.
+- Only 31% of clips have a poster (13 of the 38 sites). The rest show a blank or grey box until they
+ play, and the panel recorded those as blank first paints. Here a poster is required (section 11).
+- Sources: 1920×1080 is the commonest, then 1280×720; tall clips at 450×800 or 540×960 for phones and
+ portrait tiles. Median source width 1,080px.
+- On the page: 16:9 41%, square 19%, portrait (4:5 to 9:16) 25%, 4:3 or 3:2 12%. Corners square on 75%
+ (the rest 4–5px or 20–32px). `object-fit: cover` on 84%, contain on 16% (product strips, letterboxed
+ films).
+
+**Where it goes.**
+
+- **Hero background:** full-bleed, cover, often oversized by 1–25% so a drift or zoom never shows an
+ edge. Either one slow take or a montage cutting every second or two.
+- **Inline, as a picture:** in splits, tiles and cards, at about a third of the width (median 33%,
+ middle half 24–45%); a third of these clips are under a quarter of the width and fewer than one in
+ ten is full width. Slow, near-still subjects (water, skin, light, a turning object) read as living
+ photographs and sit well among stills.
+- **The frame that grows** (above), for a reel.
+- **A docked card** (above): one small clip in a corner.
+- **On hover:** only two or three sites play clips on hover, all of them in an index or list. Nothing
+ that matters should play on hover only; phones have no hover.
+- **Full films:** about ten sites offer a full film behind a play button that opens a player with
+ controls. None autoplays it.
+- **Sound:** six sites offer sound behind a toggle; no clip starts with sound.
+
+**How text sits on it.**
+
+- Of about 30 sites with a full-bleed picture or film behind text on the first screen, about 14 set the
+ type straight on it and rely on the footage being graded dark where the type sits; about 10 dim it
+ (to half brightness, under a 30–40% dark layer, or with a dark fade along the bottom 180–590px);
+ about 6 keep the text off the picture, above it or on a solid card.
+- What goes on footage in the study is the name or a headline at 47–136px and one short line, docked
+ bottom-left or centred. Where body text at 11–14px went on footage or a busy photograph, the panel
+ named it as a fault, on top-scored sites too.
+- Here: one headline, one line and one action on footage at most, and never body text. Check contrast
+ where the type sits across the whole loop, not only on the poster; if any frame drops below 4.5:1
+ (3:1 for type of 24px and up), use the scrim in section 6 or a solid band.
+
+**On the phone.** Footage re-crops to a full-screen portrait (a separate tall source, or
+`object-position` on the subject); inset frames go full-bleed. One site in the study adds a 40% scrim
+on the phone only, where the type covers more of the picture.
+
+### Crops and treatment
+
+- **Ratios.** Of 1,356 pictures and clips measured: 4:5 21%, 16:9 19%, 1:1 16%, 16:10 10%, 3:2 7%, 2:3
+ 5%, 4:3 5%, 5:4 4%, 3:4 3%, wider than 2:1 6%, 9:16 or taller 3%. Landscape 52%, portrait 33%,
+ square 15%.
+- **Two ratios do most of the work.** On sites with four pictures or more, the two commonest ratios
+ hold 76% of the pictures. The others (five ratios in all at the median) are exceptions with a reason:
+ one tall portrait in a run of landscapes, one wide band.
+- **Square corners** on 94% of pictures; 62 of the 68 sites with pictures in the page keep at least 80%
+ of them square. Where corners are rounded, it is 5px or less on two-thirds of them, or 20–32px on
+ card interfaces, one value per site.
+- **Cover.** `object-fit: cover` on 78%, contain on 10% (a product on a tile, a letterboxed film).
+- **Untouched.** CSS filters touch pictures on only 9 sites, mostly for hover states. A handful use
+ black-and-white photography as a set; two multiply scanned paper onto the ground. Several keep the
+ interface black, white and grey and let the photographs carry all the colour.
+- **Common in the study, not treatments here** (section 6): a fixed grain layer over the whole page
+ (about a third of the sites), duotone or tinted photographs, blurred copies behind a picture as a
+ glow, tilted prints and stickers with offset shadows.
+- **Oversize only by the distance it moves.** 22 sites move pictures with the scroll, oversizing them by
+ 1–25%. Oversize by the travel and no more, on one picture per screen.
+- **Resolution.** The study serves pictures at a median 1.9 times their CSS width, but 17% are served
+ smaller than they are shown and full-width pictures at a median of only 1,440px. Here: twice the CSS
+ width, capped at about 2,400px (section 4).
+
+### Text over pictures
+
+- In the study, text sits on pictures often and is checked rarely: about 28 notes record text set
+ straight on a picture with no scrim, and the faults of 16 sites include text lost over pictures: 8–14px
+ labels and body over photographs, and navigation in a difference blend or with no backing passing
+ over them.
+- Where it works, the text is display size and sits over the calm part (sky, a dark wall, the shadow
+ side), docked in a corner or along one edge. Two other forms in the study: a solid card in the
+ ground colour inset over the photograph and carrying the heading, and text on the white of a picture
+ that fades into the page.
+- Here: on a picture put only display text, one short line and one action. Body text, captions and
+ labels go beside or under it. Measure contrast at the text's own position (4.5:1, or 3:1 for 24px and
+ up). If it fails, move the text to a calmer part, put it on a solid card in the ground colour, or use
+ the scrim in section 6. A fixed navigation that passes over pictures gets a solid band, or hides
+ while scrolling down.
+
+### Rules for a generator
+
+1. **About a third of the page is picture.** Across the scrolled screens, pictures fill 30–40% of the
+ area, and at least one screen in four carries no picture (top sites: 30% and 28%).
+2. **A picture leads its screen or stays small.** A leading picture takes at least 60% of its screen;
+ an accent stays under 10% of it. Avoid screen after screen of pictures at 20–40%: in the study 42% of
+ screens are 0% and 19% are 90% or more.
+3. **Three to five placements per page,** and no two neighbouring sections with the same one. Sites
+ with two or fewer average 7.31, sites with three or more about 7.5.
+4. **Six to twelve pictures, never fewer than four.** Study median 7; top sites 4–27; lowest 2.
+5. **Two ratios for at least 75% of the pictures** (76% in the study), a third only for a deliberate
+ exception. Defaults: 4:5 for portraits, 16:9 or 3:2 for landscapes.
+6. **Square corners on every picture** (94% in the study). If the direction rounds them, one radius of
+ 4px for every picture and clip.
+7. **Split pictures take 42–50% of the width, or two-thirds,** at the full height of the section and
+ touching the viewport on their outer side; the text starts on the 50% line. On the phone the
+ picture goes first, full width.
+8. **Full-bleed bands are 100% wide and 100–150vh tall,** one every three or four screens, oversized by
+ 10% at most for parallax, with text only in one corner at least 32px in. On the phone, re-crop to a
+ full-screen portrait.
+9. **One inset frame that grows per page,** from 35–50% of the width to the full screen over
+ 720–2,700px of scroll, with nothing else moving on that screen.
+10. **Horizontal galleries show three cards and a cut fourth:** cards 25–35% of the width with 16–20px
+ gaps; on the phone one card at 75–80% of the width with the next one showing.
+11. **One moving picture per screen.** Clips of 5–15s (median 10s), muted, looped, inline, with a
+ poster, paused out of view; a hero source of 1920×1080 under 10MB, inline clips at 1280×720 or
+ smaller under 5MB.
+12. **Only display text on a picture:** a headline, one line and one action at most, with contrast
+ measured at the text's position across the whole loop. Body text, 16px or more, goes beside or
+ under the picture, never on it.
diff --git a/skills/taste-skill/references/layout.md b/skills/taste-skill/references/layout.md
index 00d538e..6610b4d 100644
--- a/skills/taste-skill/references/layout.md
+++ b/skills/taste-skill/references/layout.md
@@ -11,11 +11,12 @@ below are hand tallies from those notes, so read them as "about").
2. Margins and the grid
3. Where text sits
4. Empty space
-5. Sections: carry the idea, vary the arrangement
-6. Navigation
-7. Endings
-8. The phone is a second composition
-9. How pages fail
+5. The frame: margins, balance and titles
+6. Sections: carry the idea, vary the arrangement
+7. Navigation
+8. Endings
+9. The phone is a second composition
+10. How pages fail
## 1. What strong pages do
@@ -77,19 +78,124 @@ below are hand tallies from those notes, so read them as "about").
## 4. Empty space
-Empty space is placed, not left over: an empty left half, a blank right third, 300px of nothing above
-the work.
+Empty space is placed, not left over. In the study of 97 Sites of the Day captured in October 2026,
+readers judged every large empty area either a rest, which something closes, or a hole, which nothing
+closes. Strong sites have plenty of rests. About half of them still leave at least one hole, and the
+holes are what visitors name ("big random blank spaces").
-- Decide where the void is and keep it clean: no stray caption, no decorative shape, no faint
- watermark.
-- The gap between sections is clearly larger than any gap inside one (120–220px on desktop,
- 72–112px on a phone).
-- Related things sit close; unrelated things sit far. If a heading is equidistant from the paragraph
- above and the one below, fix it: at least twice as much space above as below.
+**A void is placed when something closes it.** In the readers' notes the closer is, most often:
+
+- the picture itself (sky, ground, the object, the film) with the type docked at its edge;
+- a picture across the void: the photograph at the far side of an empty band, the full-width row
+ rising under a statement, the opposite picture in a stagger;
+- the type: a headline large enough to span the space, or two short texts at the two ends of one
+ baseline;
+- on a one-screen page, the wordmark, the navigation and one fact in the corners, like a mount around
+ a print.
+
+About one closer in five in the study is a hairline or grid line. That device is banned here; close the
+void with the picture, the type, a step in ground tone or a field of flat colour.
+
+**Where holes come from.** In order of frequency in the study:
+
+1. A gap between sections stretched too far: bands of 250–760px of plain ground.
+2. Text in one half of a section and nothing in the other.
+3. Content that arrives late: a reveal not yet fired, so the visitor scrolls onto bare ground while the
+ words fade in.
+4. A short block stretched to a full screen: a footer padded to the viewport height, a section title
+ alone on a whole screen.
+5. A pinned scene that holds almost nothing for several screens.
+6. Pictures of different heights top-aligned in a row, leaving a hole under the short one.
+
+**Rules**
+
+- Decide where the void is and name what closes it. If nothing does, it is a hole: move the section's
+ picture into it, make the main element bigger, or take the space out.
+- Keep the void clean: no stray caption, no decorative shape, no faint watermark, no grid lines.
+- Sections sit 120–240px apart on desktop, counted from the last line of one to the first line of the
+ next (the median in the study is about 230–250px), and 72–112px on a phone. A change of ground
+ colour lets the gap be a little smaller. More than about 40% of a screen of plain ground between two
+ sections is a hole.
+- The gap between sections is clearly larger than any gap inside one. Related things sit close and
+ unrelated things far; a heading has at least twice as much space above it as below.
+- No stretch of the page taller than about half a screen holds nothing at all. In the study, runs of a
+ screen or more with nothing in the page were almost always scroll distance for a pinned scene; the
+ pinned stage must then hold something at every scroll position.
+- Content is in place on the first paint. An entrance moves what is already there (see `motion.md`);
+ it never leaves a screen of bare ground while the words arrive.
+- Size a section to its content. `min-height: 100vh` belongs to a section that fills the screen, not
+ to a footer or a lone heading.
+- In a row of pictures of different heights, align the bottoms or put something under the short one,
+ or crop the row to one ratio.
+- A rest is one thing on a screen: a single line, one object, one picture or a field of colour. Once
+ per page at most. A screen of nothing is never a rest, and the inspector fails two near-empty screens.
- When a section looks empty, the answer is almost never "add something". Make the main element
bigger, or cut the section.
-## 5. Sections: carry the idea, vary the arrangement
+## 5. The frame: margins, balance and titles
+
+The frame is what readers judge before any detail: "no good margin", "everything is shifted to one
+side", "no clear title", "random unclear sections". The inspector measures each of these. The numbers
+are from the study of 97 Sites of the Day (October 2026).
+
+**One pair of equal margins.**
+
+- The left and right margins are the same, at every width. On the studied sites with scrolling
+ sections the two sides match to a few pixels: 16 and 16, 20 and 21, 32 and 32, 140 and 137. No
+ strong page in the study was pushed to one side.
+- The usual margin is tight: median about 28px at 1440, half the sites between about 18 and 45px, a
+ few at 80px or more. Here it is 16–32px (section 2), and never under 16px at any width, on the phone
+ included. About one award site in seven sets text 8–15px from the edge; that studio habit is
+ excluded here.
+- The navigation sits on the same margins as the content. The commonest small fault in the study is a
+ header on one inset and the page on another (40px against 20px, or 34px on the left against 10px on
+ the right).
+- A bleed is deliberate and starts from the margin: a row of pictures that runs off the right edge
+ begins on the left margin; a display line that bleeds starts or ends on one. A bleed never moves the
+ margin.
+- Asymmetry belongs inside the frame: an off-centre anchor line (a third across, 42%, the centre line)
+ on symmetric margins.
+
+**Use the width the page has set up.**
+
+- In the study about one text section in a hundred leaves half the width empty. Text that sits in one
+ half is common, in roughly one site in three, but the other half then holds the section's own
+ picture (most often), a full-bleed picture behind the text, a second column, a list or a figure.
+- When the text takes one side, put the picture, the second column, the list or the large number on
+ the other. Never leave the other half to plain ground.
+- The middle counts too: a card at the left edge and a lone button at the right with the middle third
+ empty is the same hole.
+- A centred composition has one axis, equal flanks and one thing on it, not a stack of heading,
+ paragraph and two buttons.
+
+**A title that says what this is, on the first screen.**
+
+- Asked whether a stranger could say what the page is within five seconds, readers found that 40 of
+ the 97 first screens say it in words, 42 say it only through pictures, small print or a bare name,
+ and 15 do not say it at all. The last group lost usability and content points, not design points.
+- Size alone does not do it: 66 of the 97 first screens carry a display-size line, but 26 of those are
+ a name, a slogan or a place with nothing saying what is offered.
+- The first screen has one `h1`, at display size (32px or more on desktop; on the clear first
+ screens in the study mostly 50–150px), two lines at most, that says what this is: the name with
+ what it does, the product with what it is for, the event with its date and place. If the `h1` is
+ the name, the line under it, at 18px or more, says what the thing is.
+- It is there on the first paint. 29 of the 97 still showed a loader or nothing readable at 4.5
+ seconds.
+
+**A heading on every section.**
+
+- 82% of the text sections on the studied sites open with a heading: median 57px (40–96px for the
+ middle half), about three and a half times the body size, one or two lines.
+- Headings start on the outer margin or on the page's inner anchor line (in the study about a third
+ each) and in the same place for every section. About a quarter of the headings in the study are
+ centred; centre one moment per page here.
+- Where a studied section has no heading, the usual stand-in is a small label: caps, mono or a number
+ in brackets. All three are banned here. Put the label's words in a heading in the heading face at the
+ section size ("The rooms", "How it works", "Prices"), set them on the anchor line, and let the first
+ sentence carry the rest.
+- A statement can open a section as its heading only when it names what the section holds.
+
+## 6. Sections: carry the idea, vary the arrangement
The most common failure in every score band is a distinctive first screen followed by stock blocks:
icon cards, a three-up row, an accordion, a link-column footer. About 25 of the studied sites lose
@@ -110,7 +216,7 @@ points this way, including several above 7.5.
- **Short pages are fine.** A quarter of the studied sites are one or two screens. Do not add sections
to seem complete; each one must carry a claim (see `copy.md` §1).
-## 6. Navigation
+## 7. Navigation
- The plain form: the wordmark at one end, three to five text links, one action, all at text size on
the page ground with no bar, border or background. Median link count in the study is 3.
@@ -127,7 +233,7 @@ points this way, including several above 7.5.
the phone so the headline, the supporting sentence and the action stay in the first screen. In
blind tests a nav that ate the hero cost a whole point of usability.
-## 7. Endings
+## 8. Endings
- The page should end on a designed scene. In the study: the name at full width (about 18 of 114), the
hero repeated in inverted colours (about 12), a closing scene of its own such as the one contact
@@ -138,7 +244,7 @@ points this way, including several above 7.5.
- Put the practical facts (address, hours, email, legal line) in the text face at a readable size, on
the same anchor lines as the rest of the page.
-## 8. The phone is a second composition
+## 9. The phone is a second composition
Design the 390px screen as its own page, not the desktop page squeezed. Strong sites that neglect this
lose usability points; weak ones are often just broken.
@@ -153,7 +259,7 @@ lose usability points; weak ones are often just broken.
- Check 390px in the inspector's screenshots for every round: sideways scroll and three-line headlines
usually appear here first.
-## 9. How pages fail
+## 10. How pages fail
From the panel's notes on the 54 sites scoring under 6.8 (counts out of 54):
diff --git a/skills/taste-skill/references/motion.md b/skills/taste-skill/references/motion.md
index 0655472..a758d00 100644
--- a/skills/taste-skill/references/motion.md
+++ b/skills/taste-skill/references/motion.md
@@ -6,12 +6,15 @@ Read this before adding any animation. The static page must already be finished
## Contents
1. The budget
-2. Four questions before any animation
-3. Tokens
-4. Recipes (copy, then adapt)
-5. Signature moves
-6. Reduced motion and performance
-7. What gives generated motion away
+2. What strong pages do with motion
+3. Four questions before any animation
+4. Tokens
+5. Scroll behaviours, ranked
+6. Recipes (copy, then adapt)
+7. Signature moves
+8. Reduced motion and performance
+9. What gives generated motion away
+10. Rules for motion
## 1. The budget
@@ -37,7 +40,44 @@ cited motion tell of generated pages; motion that hides content until a script r
bounce and elastic easing; anything that animates layout properties. Uniform motion says nobody decided
anything; choreographed motion with one protected moment says somebody did.
-## 2. Four questions before any animation
+## 2. What strong pages do with motion
+
+Measured on the latest 99 Awwwards Sites of the Day (July to October 2026), at 1440 and 390, with
+the transitions, tweens and scroll triggers recorded while each page loaded and was scrolled. Where
+the gallery does something the house rules ban, the house version follows.
+
+- **The stack.** Two in three use a smooth-scroll library and three in five ship Three.js; GSAP is
+ named on 56. None of that is needed for what follows. Only 3 use CSS scroll-driven animations and
+ 6 use view transitions, which now do most of what the libraries are loaded for.
+- **Curves.** The curves that really ran are strong ease-outs: expo out (`.16,1,.3,1` and
+ `.19,1,.22,1`) ran on 14 sites, cubic out on 13, quint out on 7, and by number of transitions the
+ quint and expo outs lead every chosen curve. In-out curves are kept for wipes and things that
+ travel (cubic and quart in-out, about 15 sites each). Ease-in appears only for exits, short, before
+ a slow arrival. Colour changes use plain `ease` (46 sites). Overshoot sits in 19 stylesheets and
+ ran on 2.
+- **Durations.** Hover colour 200-300 ms; small interface moves 300-450 ms; reveals and line rises
+ 600-1,000 ms; picture openings and wipes 1,100-1,600 ms. The median of everything that ran on a
+ site is 420 ms.
+- **Staggers.** 20-40 ms between characters, 75-120 ms between lines, 50-100 ms between list items.
+- **Scroll-linked motion is locked to the scrollbar.** Of the sites that scrub, 14 of 18 lock it with
+ no smoothing; the rest smooth by 0.25-1 s. Reveals fire when the element's top is 80-95% of the way
+ down the viewport, once.
+- **How much moves.** A median of 130 elements are moved by script on a page, but they come from a
+ few gestures: one split heading is 20-60 elements. The inspector's floor (8, warning under 16) is a
+ floor, not a target.
+- **Waiting is the most common cost.** 60 of 99 open on a loading screen, 26 of them with a counter.
+ Half the usable pages were still unreadable 2.5 s after the browser said the page had loaded, a
+ third at 4.5 s. The preloaders were not covering slow pages (their documents loaded faster than the
+ rest) and the readers' design marks were the same whatever the wait; only usability fell. House
+ version: no preloader, the message readable on the first frame, the load sequence over by 1.2 s.
+- **Pins cost length.** Two in three scrolling pages hold something sticky or pinned. Those pages
+ are twice as long (a median 16.6 screens against 7.5) for fewer words per screen (27 against 46).
+ House version: at most two held stages, about one screen per step, three screens per stage.
+- **Reduced motion is mostly missing.** 35 of 99 have any `prefers-reduced-motion` rule, 16 have
+ three or more; 5 of 26 scroll-scrubbed scenes have one. Every recipe here keeps the finished state
+ as the reduced state.
+
+## 3. Four questions before any animation
1. **How often will someone see it?** Once per visit (hero load, a section reveal): it can take its
time. Many times per visit (hover, menu, accordion): fast and small. Hundreds of times (keyboard
@@ -52,24 +92,85 @@ anything; choreographed motion with one protected moment says somebody did.
4. **How long?** Press feedback 100–160ms. Hover 150–200ms. Menus and popovers 150–250ms. Dialogs and
drawers 250–450ms. Section and hero reveals 500–900ms. Leaving is quicker than arriving (about 70%).
-## 3. Tokens
+## 4. Tokens
```css
:root {
- --ease-out: cubic-bezier(0.22, 1, 0.36, 1); /* enters, exits, reveals */
- --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1); /* things that travel while visible */
- --ease-soft: cubic-bezier(0.33, 1, 0.68, 1); /* long quiet reveals, image scale */
+ --ease-out: cubic-bezier(0.22, 1, 0.36, 1); /* entrances, moving hovers, UI under 600ms */
+ --ease-expo: cubic-bezier(0.16, 1, 0.3, 1); /* new: reveals of 800ms and longer, line rises, openings */
+ --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1); /* wipes, panels, things that travel while visible */
+ --ease-soft: cubic-bezier(0.33, 1, 0.68, 1); /* slow scale and drift on photographs */
+ --ease-exit: cubic-bezier(0.55, 0.055, 0.675, 0.19); /* new: something leaving for good, short */
--t-press: 140ms;
--t-hover: 180ms;
--t-ui: 240ms;
--t-reveal: 800ms;
+ --t-open: 1200ms; /* new: picture openings and clip wipes */
+ --stagger-line: 90ms; /* new */
+ --stagger-item: 70ms; /* new */
}
```
-Name the properties you animate. `transition: all` animates things you did not intend (and costs
-layout); write `transition: transform var(--t-press) var(--ease-out)`.
-
-## 4. Recipes
+How the study bears on each:
+
+- `--ease-out` (quint out) is in 28 stylesheets with its near twin and is the single most frequent
+ chosen curve among transitions that ran. Keep it.
+- `--ease-expo` is new. Expo out (`.16,1,.3,1` and `.19,1,.22,1`) is in 28 stylesheets and ran on 14
+ sites, more than any other chosen family, and it is the curve the long reveals use: line rises,
+ picture openings, card entrances of 0.9-1.6 s. Use it for anything at `--t-reveal` or longer; it
+ replaces `--ease-out` in the masked headline and the reveal-on-scroll recipes.
+- `--ease-in-out` (quart in-out) matches its family (14 stylesheets, 7 ran). Keep it for wipes,
+ shutters, menus and page transitions.
+- `--ease-soft` (cubic out) matches the cubic-out family (21 stylesheets, 13 ran), but the study uses it
+ for interface moves of 0.3-0.8 s, where `--ease-out` already serves. Narrow it to slow scale and
+ drift on photographs.
+- `--ease-exit` is new. Ease-in is right for exactly one job: something that leaves for good (an
+ outgoing caption, a replaced slide, a closing panel), short, at about 60-70% of the matching
+ entrance. Never for anything the visitor is waiting to see.
+- Not adopted: `.4,0,.2,1` (38 stylesheets) is a framework default, and overshoot curves (19) stay
+ banned on interface elements.
+- `--t-hover` stays at 180ms. The study's colour hovers run 200-300ms; a little quicker reads as
+ more exact. A hover that moves something (a label roll, an arrow) takes `--t-ui` to 400ms.
+
+## 5. Scroll behaviours, ranked
+
+| Behaviour | Pages of 99 | What it serves | House version |
+| --- | --- | --- | --- |
+| Smooth-scroll library | 67 | A feeling of weight; makes scrubbed scenes easier to build | Not used. Native scroll; scroll timelines do the linking |
+| Held (sticky or pinned) stage | 44 | One picture or object carries several claims; chapters | Yes: sticky only, at most two per page, about one screen per step, three per stage, every held screen carries a line of text |
+| Split text | 40 | Lines and words arriving as they are read; hover rolls | Lines for headings and statements; words only for the ink fill; characters only for a heading of one to three words |
+| Colour by chapter | 34 | Tells chapters apart without padding bands | Yes, as hard cuts at section edges; the header ink follows in 300ms |
+| Scroll-scrubbed scene (camera, object, image sequence) | 26 | Explains a product by moving it | Only with real frames (photographs, a short image sequence), capped at two screens, with a static fallback |
+| Parallax depth | 24 | Depth in collages; pictures drifting inside oversized frames | Travel under 8% of the element, pictures held at 106-110% in their frames |
+| Marquee | 21 | Life on a static band | Existing "Edge-to-edge marquee": one per page, pausable |
+| Masked line or word rise | 18 | Headings that arrive like set type | Yes: "Masked line reveal" on load, "Lines that rise on scroll" below the fold |
+| Wheel drives a scene, no page scroll | 16 | Browsing one object | Not used (see 2.6) |
+| Blur-in | 15 | Soft arrival | At most 8px of blur, 600ms, gone once settled; never on body text |
+| Picture from inset frame to full-bleed | 14 | The hand-over from a type screen to the big picture | Yes: "Opening window", about one screen of scroll |
+| Grey-to-ink text fill | 14 | Paces one statement | Yes, once per page, starting at 45% ink: "Ink fill" |
+| Sheet slides over a held layer | 11 | Page-turn rhythm between chapters | Yes: new move "Sheet over a held picture" |
+| Scramble or decode | 11 | A "code" voice | Not used (see 2.6) |
+| Header ink by chapter | 10 | The fixed header stays legible | Yes, with colour by chapter |
+| Horizontal track pinned to vertical scroll | 8 | Walking through rooms or a collection | Native drag row first; pinned only when the row is under three screens long, with keyboard support: "Sideways gallery" |
+| Curtain footer | 8 | The page ends as a scene | Existing move |
+| Rolling digits | 6 | Figures that arrive | Yes, for pages whose case is a handful of numbers: "Rolling figures" |
+| Index with hover preview | 5 | Navigating work by name | Existing move, upgraded recipe |
+
+Text, split by unit: characters on about 20 pages, lines on about 14, words on about 11. Character
+splits serve short headings and button rolls; on long statements they leave fragments mid-scroll.
+
+## 6. Recipes
+
+All recipes keep the content visible when JavaScript is off, put every hidden state inside
+`prefers-reduced-motion: no-preference`, and use the tokens above. Two notes that apply to several:
+
+- **Scroll timelines need a scroller to watch.** `animation-timeline: view()` takes the nearest scroll
+ container, and `overflow: hidden` makes one. A picture inside an `overflow: hidden` frame therefore
+ never animates. Use `overflow: clip` on frames, or name the timeline on the section
+ (`view-timeline-name: --hero`) and point the children at that name. This also applies to the
+ existing "Scroll-linked progress" recipe.
+- **Scroll-linked means linear.** The scroll is the easing. 14 of the 18 scrubbing sites in the study
+ lock motion to the scrollbar, which is what CSS scroll timelines do.
All recipes keep content visible when JavaScript is off or slow: the hidden state only applies under
`html.js`, which a one-line inline script sets.
@@ -78,27 +179,44 @@ All recipes keep content visible when JavaScript is off or slow: the hidden stat
<script>document.documentElement.classList.add('js')</script>
```
-### Hero load sequence (CSS only)
+### Load sequence in 1.2 seconds
+
+Everything is in the HTML and painted on the first frame; the sequence only adds arrival. Nothing
+waits for the load event, and nothing in the navigation animates.
-Stagger at most four things. With a headline of two lines this is short and reads as one gesture.
+```html
+<header class="hero">
+ <h1 class="display lines">
+ <span class="line"><span data-line style="--i:0">Stools for</span></span>
+ <span class="line"><span data-line style="--i:1">small kitchens</span></span>
+ </h1>
+ <p class="lead" data-load style="--d:420ms">…</p>
+ <a class="button" data-load style="--d:480ms" href="#stools">See the stools</a>
+ <figure class="hero__picture" data-open><img src="stool.jpg" alt="…" fetchpriority="high"></figure>
+</header>
+```
```css
+.hero__picture { overflow: clip; margin: 0; }
@media (prefers-reduced-motion: no-preference) {
- .js [data-rise] {
- opacity: 0;
- transform: translateY(18px);
- animation: rise var(--t-reveal) var(--ease-out) forwards;
- animation-delay: calc(var(--i, 0) * 90ms + 120ms);
- }
+ .js .hero [data-line] { transform: translateY(105%); animation: load-line 800ms var(--ease-expo) forwards; animation-delay: calc(100ms + var(--i) * var(--stagger-line)); }
+ .js .hero [data-load] { opacity: 0; transform: translateY(12px); animation: load-rise 500ms var(--ease-out) forwards; animation-delay: var(--d); }
+ .js .hero [data-open] { clip-path: inset(0 0 100% 0); animation: load-open 1000ms var(--ease-in-out) 150ms forwards; }
+ .js .hero [data-open] img { transform: scale(1.08); animation: load-settle 1100ms var(--ease-expo) 100ms forwards; }
}
-@keyframes rise { to { opacity: 1; transform: none; } }
+@keyframes load-line { to { transform: none; } }
+@keyframes load-rise { to { opacity: 1; transform: none; } }
+@keyframes load-open { to { clip-path: inset(0); } }
+@keyframes load-settle { to { transform: none; } }
```
-```html
-<h1 data-rise style="--i:0">…</h1>
-<p data-rise style="--i:1">…</p>
-<a data-rise style="--i:2" class="button">…</a>
-```
+The timeline: the headline's lines rise from 100 to 990 ms, the picture opens from 150 to 1,150 ms,
+the sentence and the button arrive from 420 to 980 ms. All settled by 1.2 s, four things at most.
+Preload the display font (`<link rel="preload" as="font" type="font/woff2" crossorigin>`) so the lines
+rise in the real face, and give the picture `fetchpriority="high"` and a ground colour sampled from it,
+so a slow image opens onto its own colour rather than a blank box. Study: 22 of 91 pages were readable
+at the first intro frame and 11 more by 1.2 s; the intros the readers called respectful finished in
+about 1-1.2 s; a third of the pages were still unreadable at 4.5 s.
### Masked line reveal (the classic gallery headline)
@@ -209,20 +327,486 @@ A section whose heading stays put while items pass. Use `position: sticky`; do n
@media (max-width: 800px) { .story { grid-template-columns: 1fr; } .story__title { position: static; } }
```
-### List with image preview (work index, menu, team)
+### Index with preview, anchored to the row
+
+Rows of names; pointing at a row or tabbing to it opens one frame level with that row. The frame
+follows the row, never the pointer.
-Rows of large text; hovering a row shows its image in a fixed frame beside or behind the list.
+```html
+<section class="index">
+ <ul class="index__list">
+ <li><a class="index__row" href="/work/harbour-house" data-preview="/img/harbour-house.jpg">
+ <span class="index__name">Harbour House</span><span class="index__year">2025</span>
+ <img class="index__thumb" src="/img/harbour-house-small.jpg" alt="" loading="lazy" width="640" height="400">
+ </a></li>
+ <!-- … -->
+ </ul>
+ <div class="index__frame" aria-hidden="true"><img alt=""></div>
+</section>
+```
```css
.index { position: relative; }
-.index__row { display: flex; justify-content: space-between; align-items: baseline; padding-block: 0.35em; font-size: var(--step-4); }
-.index__frame { position: absolute; inset-block: 0; right: 0; width: 34%; pointer-events: none; }
-.index__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--t-ui) ease; }
-.index__frame img.is-on { opacity: 1; }
-@media (hover: hover) and (pointer: fine) { .index:hover .index__row:not(:hover) { opacity: 0.35; } .index__row { transition: opacity var(--t-hover) ease; } }
+.index__list { list-style: none; margin: 0; padding: 0; }
+.index__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 var(--gutter); padding-block: 0.3em; font-size: var(--step-head); color: inherit; text-decoration: none; transition: opacity var(--t-hover) ease; }
+.index__thumb { order: -1; flex-basis: 100%; width: 100%; height: auto; margin-bottom: 0.4rem; }
+.index__frame { display: none; }
+@media (hover: hover) and (pointer: fine) {
+ .index__list { max-width: 62%; }
+ .index__thumb { display: none; }
+ .index__list:has(.index__row:hover, .index__row:focus-visible) .index__row:not(:hover, :focus-visible) { opacity: 0.35; }
+ .index__frame { display: block; position: absolute; top: 0; right: var(--margin); width: 30%; aspect-ratio: 4 / 3; z-index: 1; pointer-events: none; clip-path: inset(100% 0 0 0); transition: clip-path 320ms var(--ease-out), transform 360ms var(--ease-out); }
+ .index__frame.is-open { clip-path: inset(0); }
+ .index__frame img { width: 100%; height: 100%; object-fit: cover; }
+}
+@media (prefers-reduced-motion: reduce) { .index__frame { transition: none; } }
+```
+
+```js
+(() => {
+ const root = document.querySelector('.index');
+ if (!root) return;
+ const frame = root.querySelector('.index__frame');
+ const picture = frame.querySelector('img');
+ const fine = matchMedia('(hover: hover) and (pointer: fine)');
+ let warmed = false;
+ const show = (row) => {
+ if (!fine.matches) return;
+ if (!warmed) { warmed = true; root.querySelectorAll('[data-preview]').forEach((a) => { new Image().src = a.dataset.preview; }); }
+ picture.src = row.dataset.preview;
+ const y = row.offsetTop + row.offsetHeight / 2 - frame.offsetHeight / 2;
+ const max = root.offsetHeight - frame.offsetHeight;
+ const opening = !frame.classList.contains('is-open');
+ if (opening) frame.style.transitionProperty = 'clip-path'; // open in place, do not slide in from the top
+ frame.style.transform = `translateY(${Math.min(max, Math.max(0, y))}px)`;
+ if (opening) { frame.getBoundingClientRect(); frame.style.transitionProperty = ''; }
+ frame.classList.add('is-open');
+ };
+ const hide = () => frame.classList.remove('is-open');
+ root.querySelectorAll('.index__row').forEach((row) => {
+ row.addEventListener('pointerenter', () => show(row));
+ row.addEventListener('focus', () => show(row));
+ });
+ root.addEventListener('pointerleave', hide);
+ root.addEventListener('focusout', (e) => { if (!root.contains(e.relatedTarget)) hide(); });
+})();
+```
+
+On touch screens each row shows its own picture above the name. Study: 5 pages navigate work this way;
+frames from about 470x270 to large plates behind the list; the other rows dimmed to about 0.3. The
+image trails and cursor-borne previews seen elsewhere in the study are the gimmick version.
+
+### Lines that rise on scroll
+
+For a section heading or a statement whose line breaks you do not control. Splits after the fonts
+load, reveals once, then gives the plain text back so it rewraps normally. Plain text only (no links or
+emphasis inside).
+
+```html
+<h2 class="head" data-lines>Turned by hand in one small workshop</h2>
+```
+
+```css
+[data-lines] .line { display: block; overflow: clip; padding-bottom: 0.12em; margin-bottom: -0.12em; }
+[data-lines] .line > span { display: block; }
+@media (prefers-reduced-motion: no-preference) {
+ .is-split .line > span { transform: translateY(110%); }
+ .is-split.is-in .line > span { transform: none; transition: transform 900ms var(--ease-expo) calc(var(--i) * var(--stagger-line)); }
+}
+```
+
+```js
+(() => {
+ const els = [...document.querySelectorAll('[data-lines]')];
+ if (!els.length || !('IntersectionObserver' in window) || matchMedia('(prefers-reduced-motion: reduce)').matches) return;
+ const restore = (el) => { el.textContent = el.dataset.text; el.classList.remove('is-split', 'is-in'); };
+ const split = (el) => {
+ const text = el.textContent.trim().replace(/\s+/g, ' ');
+ el.dataset.text = text;
+ el.textContent = '';
+ const words = text.split(' ').map((word) => {
+ const s = document.createElement('span');
+ s.style.display = 'inline-block';
+ s.textContent = word;
+ el.append(s, ' ');
+ return s;
+ });
+ const lines = []; // group the words by the line they landed on
+ for (const w of words) {
+ const last = lines.at(-1);
+ if (last && Math.abs(last.top - w.offsetTop) < 4) last.words.push(w.textContent);
+ else lines.push({ top: w.offsetTop, words: [w.textContent] });
+ }
+ el.textContent = '';
+ lines.forEach((line, i) => {
+ const mask = document.createElement('span');
+ const inner = document.createElement('span');
+ mask.className = 'line';
+ inner.style.setProperty('--i', i);
+ inner.textContent = line.words.join(' ');
+ mask.append(inner);
+ el.append(mask, ' ');
+ });
+ el.classList.add('is-split');
+ };
+ const io = new IntersectionObserver((entries) => {
+ for (const e of entries) {
+ if (!e.isIntersecting) continue;
+ io.unobserve(e.target);
+ e.target.classList.add('is-in');
+ e.target.querySelector('.line:last-of-type > span')
+ .addEventListener('transitionend', () => restore(e.target), { once: true });
+ }
+ }, { rootMargin: '0px 0px -12% 0px' });
+ document.fonts.ready.then(() => els.forEach((el) => { split(el); io.observe(el); }));
+ let width = innerWidth; // a width change before the reveal: give the text back
+ addEventListener('resize', () => {
+ if (innerWidth === width) return;
+ width = innerWidth;
+ els.filter((el) => el.matches('.is-split:not(.is-in)')).forEach((el) => { io.unobserve(el); restore(el); });
+ });
+})();
```
-On touch there is no hover, so each row shows its image inline above the title instead.
+Study: masked rises from 100-120% below the line, 0.6-1.2 s, 75-120 ms between lines, triggered when
+the block's top is 80-95% down the viewport. Reduced motion: the script does not run; the text is plain.
+
+### Opening window
+
+The hand-over from a type screen to the one big picture: the picture first shows as a window in the
+middle of a held stage and opens to full-bleed over about one screen of scroll.
+
+```html
+<section class="opening">
+ <div class="opening__stage">
+ <img src="workshop-wide.jpg" alt="The workshop at first light, benches cleared" width="2400" height="1500">
+ </div>
+</section>
+```
+
+```css
+.opening__stage { height: 100svh; overflow: clip; }
+.opening__stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
+@supports (animation-timeline: view()) {
+ @media (prefers-reduced-motion: no-preference) {
+ .opening { height: 200svh; view-timeline-name: --opening; --inset-y: 20%; --inset-x: 28%; }
+ .opening__stage { position: sticky; top: 0; animation: opening-window linear both; animation-timeline: --opening; animation-range: contain 0% contain 75%; }
+ .opening__stage img { animation: opening-settle linear both; animation-timeline: --opening; animation-range: contain 0% contain 75%; }
+ }
+}
+@media (max-width: 700px) { .opening { --inset-y: 18%; --inset-x: 8%; } }
+@keyframes opening-window { from { clip-path: inset(var(--inset-y) var(--inset-x)); } to { clip-path: inset(0); } }
+@keyframes opening-settle { from { transform: scale(1.15); } to { transform: none; } }
+```
+
+The section is two screens tall; the stage is held for one, and the window is fully open after three
+quarters of it, so the full-bleed picture rests for a moment before the page moves on. Study: 14 pages;
+start windows 38-60% of the width; runways 600-1,800 px, and the readers asked for one to two screens.
+Without scroll timelines, and under reduced motion, the picture is a full-bleed screen.
+
+### Held picture, passing captions
+
+The pinned story built for photographs: the picture holds on one side while short captions pass on
+the other; the caption at the middle of the screen is lit and its picture is shown.
+
+```html
+<section class="steps">
+ <figure class="steps__media">
+ <div class="steps__pictures">
+ <img src="seasoning.jpg" alt="Ash boards stacked to season" class="is-on">
+ <img src="turning.jpg" alt="A leg being turned on the lathe">
+ <img src="finish.jpg" alt="Oil rubbed into a finished seat">
+ </div>
+ <figcaption class="steps__count" aria-hidden="true"></figcaption>
+ </figure>
+ <ol class="steps__list">
+ <li class="steps__item"><h3>Seasoned for a year</h3><p>…</p></li>
+ <li class="steps__item"><h3>Turned by hand</h3><p>…</p></li>
+ <li class="steps__item"><h3>Finished with oil</h3><p>…</p></li>
+ </ol>
+</section>
+```
+
+```css
+.steps { display: grid; grid-template-columns: 7fr 5fr; column-gap: var(--gutter); }
+.steps__media { margin: 0; align-self: start; } /* a stretched grid item cannot stick */
+.steps__pictures img { display: block; width: 100%; height: auto; }
+.steps__list { list-style: none; margin: 0; padding: 0; }
+.steps__item { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; }
+.js .steps__media { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; }
+.js .steps__pictures { position: relative; aspect-ratio: 4 / 5; max-height: 80svh; }
+.js .steps__pictures img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity 500ms ease; }
+.js .steps__pictures img.is-on { opacity: 1; }
+.js .steps__item { opacity: 0.4; transition: opacity var(--t-ui) ease; }
+.js .steps__item.is-active { opacity: 1; }
+@media (max-width: 800px) {
+ .steps { display: block; } /* the section, not a grid area, contains the sticky picture */
+ .js .steps__media { height: auto; z-index: 1; background: var(--bg); padding-block: 0.5rem; }
+ .js .steps__pictures { aspect-ratio: 3 / 2; max-height: 42svh; }
+ .steps__item { min-height: 60svh; }
+}
+@media (prefers-reduced-motion: reduce) { .js .steps__pictures img, .js .steps__item { transition: none; } }
+```
+
+```js
+(() => {
+ const root = document.querySelector('.steps');
+ if (!root || !('IntersectionObserver' in window)) return;
+ const items = [...root.querySelectorAll('.steps__item')];
+ const pictures = [...root.querySelectorAll('.steps__pictures img')];
+ const count = root.querySelector('.steps__count');
+ const show = (i) => {
+ items.forEach((el, k) => el.classList.toggle('is-active', k === i));
+ pictures.forEach((el, k) => el.classList.toggle('is-on', k === i));
+ if (count) count.textContent = `${i + 1} of ${items.length}`;
+ };
+ const io = new IntersectionObserver((entries) => {
+ for (const e of entries) if (e.isIntersecting) show(items.indexOf(e.target));
+ }, { rootMargin: '-45% 0px -45% 0px' }); // a band across the middle of the screen
+ items.forEach((el) => io.observe(el));
+ show(0);
+})();
+```
+
+Without JavaScript the pictures and captions are two plain columns. Study: inactive items at 20-40%
+(dims of 10-15% read as missing text, so the floor here is 40%), crossfades of 400-600 ms, about one
+screen per step; the readers asked for a visible count on any held sequence of more than two steps.
+The count is a plain sentence in the body face, not a zero-padded numeral.
+
+### Sideways gallery
+
+A row of pictures that the vertical scroll moves sideways while the stage is held, for a short
+collection (eight items or fewer). The native drag row is the base; the pinned version is added only
+on wide screens with motion allowed, and only when the row is under three screens long.
+
+```html
+<section class="gallery">
+ <div class="gallery__stage">
+ <h2 class="head">Eight kitchens, one stool</h2>
+ <ul class="gallery__track">
+ <li class="gallery__item"><a href="/kitchens/leith"><img src="leith.jpg" alt="A narrow galley kitchen in Leith" width="1200" height="1500"><span>Leith</span></a></li>
+ <!-- … -->
+ </ul>
+ </div>
+</section>
+```
+
+```css
+.gallery__track { display: flex; gap: var(--gutter); list-style: none; margin: 0; padding: 0 var(--margin); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin); }
+.gallery__item { flex: 0 0 min(72vw, 28rem); scroll-snap-align: start; }
+.gallery__item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
+.gallery.is-pinned .gallery__stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 2rem; overflow: clip; }
+.gallery.is-pinned .gallery__track { overflow: visible; scroll-snap-type: none; }
+.gallery.is-pinned .gallery__item { flex-basis: calc(62svh * 0.8); }
+```
+
+```js
+(() => {
+ const root = document.querySelector('.gallery');
+ if (!root) return;
+ const track = root.querySelector('.gallery__track');
+ const wide = matchMedia('(min-width: 900px) and (prefers-reduced-motion: no-preference)');
+ let dx = 0, queued = false;
+ const place = () => {
+ queued = false;
+ if (!root.classList.contains('is-pinned')) return;
+ const p = Math.min(1, Math.max(0, -root.getBoundingClientRect().top / dx));
+ track.style.transform = `translate3d(${(-p * dx).toFixed(1)}px, 0, 0)`;
+ };
+ const measure = () => {
+ root.classList.add('is-pinned'); // measure the row as it would be when pinned
+ track.style.transform = '';
+ dx = track.scrollWidth - track.clientWidth;
+ const pin = wide.matches && dx > 0 && dx < innerHeight * 3;
+ root.classList.toggle('is-pinned', pin);
+ root.style.height = pin ? `${innerHeight + dx}px` : ''; // one pixel of scroll moves the row one pixel
+ place();
+ };
+ track.addEventListener('focusin', (e) => { // keyboard: bring the focused item into view
+ if (!root.classList.contains('is-pinned')) return;
+ const item = e.target.closest('.gallery__item');
+ const x = Math.min(dx, Math.max(0, item.offsetLeft - parseFloat(getComputedStyle(track).paddingLeft)));
+ scrollTo({ top: root.getBoundingClientRect().top + scrollY + x, behavior: 'instant' });
+ });
+ addEventListener('scroll', () => { if (!queued) { queued = true; requestAnimationFrame(place); } }, { passive: true });
+ addEventListener('resize', measure);
+ addEventListener('load', measure);
+ wide.addEventListener('change', measure);
+ measure();
+})();
+```
+
+Study: 8 pages pinned a horizontal track; their pages ran a median 25 screens, and the readers' worst
+cases spent 9 screens on three cards and 10,000-23,000 px of wheel on one track. Here the speed is 1:1
+and the hold ends when the last picture reaches the margin. Phones, narrow windows, reduced motion and
+long rows all get the native row with snapping, which also works with touch, trackpads and the
+keyboard. Never put the only copy of a call to action inside the moving row.
+
+### Receding hero
+
+As the first screen leaves, its picture sinks a little and darkens while the words lift away a little
+faster, so the hero recedes instead of simply scrolling off.
+
+```html
+<header class="hero">
+ <img class="hero__picture" src="kitchen.jpg" alt="…" width="2400" height="1600" fetchpriority="high">
+ <div class="hero__copy"><h1 class="display">…</h1><p class="lead">…</p></div>
+</header>
+```
+
+```css
+.hero { position: relative; min-height: 100svh; overflow: clip; display: grid; align-items: end; view-timeline-name: --hero; }
+.hero__picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
+.hero::after { content: ''; position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; }
+.hero__copy { position: relative; z-index: 1; padding: var(--margin); }
+@supports (animation-timeline: view()) {
+ @media (prefers-reduced-motion: no-preference) {
+ .hero__picture { animation: hero-sink linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
+ .hero::after { animation: hero-dim linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
+ .hero__copy { animation: hero-lift linear both; animation-timeline: --hero; animation-range: exit 0% exit 70%; }
+ }
+}
+@keyframes hero-sink { to { transform: translateY(8%) scale(1.06); } }
+@keyframes hero-dim { to { opacity: 0.35; } }
+@keyframes hero-lift { to { transform: translateY(-6%); opacity: 0; } }
+```
+
+The `exit` range runs from the moment the hero's top meets the top of the screen until its bottom
+does, which for a first screen is the first screen of scroll. Study: hero pictures that sink and dim as
+they leave, a heading scrubbed from 140 to 60 px, a title card that scales down on the phone; the
+readers called it quiet and the page "one sheet". Travel stays under 8%; the overlay is a flat ink at
+up to 35%, not a gradient. Static where unsupported or reduced.
+
+
+
+
+
+### Page to page
+
+Navigation between pages of the site with the browser's own view transitions: the old page fades
+quickly, the new one rises in, and the picture the visitor clicked travels into place as the new
+page's hero. No library, no full-screen curtain.
+
+```css
+/* on every page */
+@view-transition { navigation: auto; }
+@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
+::view-transition-old(root) { animation: vt-leave 200ms var(--ease-exit) both; }
+::view-transition-new(root) { animation: vt-arrive 380ms var(--ease-out) 60ms both; }
+::view-transition-group(*) { animation-duration: 480ms; animation-timing-function: var(--ease-in-out); }
+::view-transition-image-pair(*.picture) { overflow: clip; }
+::view-transition-old(*.picture), ::view-transition-new(*.picture) { height: 100%; object-fit: cover; }
+@keyframes vt-leave { to { opacity: 0; } }
+@keyframes vt-arrive { from { opacity: 0; transform: translateY(16px); } }
+```
+
+```html
+<!-- on the index: the card picture of one project -->
+<img src="/img/leith.jpg" alt="…" style="view-transition-name: kitchen-leith; view-transition-class: picture">
+<!-- on that project's page: its hero picture -->
+<img src="/img/leith-wide.jpg" alt="…" style="view-transition-name: kitchen-leith; view-transition-class: picture">
+```
+
+Each name may appear once per page. Browsers without cross-document view transitions simply navigate.
+Study: 16 pages load a page-transition library and run full-screen curtains of 0.7-2.4 s; 6 use view
+transitions. The new page should be readable within half a second.
+
+### Ink fill
+
+One statement that fills from part-ink to full ink as it rises through the screen, line by line. It is
+readable before it fills; the fill only sets the pace.
+
+```html
+<p class="statement head" data-fill>Nine people, one workshop, no catalogue: every stool is made for the kitchen it goes to.</p>
+```
+
+```css
+[data-fill] { --fill: var(--ink); color: var(--fill); }
+@supports (animation-timeline: view()) {
+ @media (prefers-reduced-motion: no-preference) {
+ .is-filling > span { display: inline-block; color: color-mix(in oklab, var(--fill) 45%, transparent); animation: ink-fill linear both; animation-timeline: view(); animation-range: cover 20% cover 45%; }
+ }
+}
+@keyframes ink-fill { to { color: var(--fill); } }
+```
+
+```js
+(() => {
+ if (!CSS.supports('animation-timeline: view()') || matchMedia('(prefers-reduced-motion: reduce)').matches) return;
+ document.querySelectorAll('[data-fill]').forEach((el) => {
+ const words = el.textContent.trim().split(/\s+/);
+ el.textContent = '';
+ words.forEach((word, i) => {
+ const s = document.createElement('span');
+ s.textContent = word;
+ el.append(s, i < words.length - 1 ? ' ' : '');
+ });
+ el.classList.add('is-filling');
+ });
+})();
+```
+
+Each word watches its own position, so the words of a line fill together as the line moves from three
+quarters of the way down the screen to just past half way. Set `--fill` on a dark chapter to its ink.
+Study: 14 pages scrub a statement from grey to ink; unread words started at about 25-30% and settled
+frames still caught statements half pale, which reads as disabled text. Here: one statement per page,
+three to five lines, 32px or larger, starting at 45% (about 3:1 against the ground, enough for large
+text). Full ink without scroll timelines or under reduced motion.
+
+### Rolling figures
+
+For pages whose case is a handful of numbers: each digit rolls up to its value once, the columns a
+beat apart. The real number stays in the text for screen readers and search.
+
+```html
+<p class="figure"><span class="display" data-roll>1987</span> the year the first stool was sold</p>
+```
+
+```css
+.roll__digits { display: inline-flex; font-variant-numeric: tabular-nums; line-height: 1; }
+.roll__col { display: inline-block; height: 1em; overflow: clip; }
+.roll__strip { display: flex; flex-direction: column; transform: translateY(calc(var(--d) * -1em)); }
+.roll__strip > span { height: 1em; }
+@media (prefers-reduced-motion: no-preference) {
+ .roll:not(.is-in) .roll__strip { transform: none; }
+ .roll.is-in .roll__strip { transition: transform 1100ms var(--ease-expo) calc(var(--i) * var(--stagger-item)); }
+}
+```
+
+```js
+(() => {
+ const els = [...document.querySelectorAll('[data-roll]')];
+ if (!els.length) return;
+ els.forEach((el) => {
+ const value = el.textContent.trim();
+ const said = Object.assign(document.createElement('span'), { className: 'sr-only', textContent: value });
+ const shown = Object.assign(document.createElement('span'), { className: 'roll__digits' });
+ shown.setAttribute('aria-hidden', 'true');
+ let i = 0;
+ for (const ch of value) {
+ if (!/\d/.test(ch)) { shown.append(ch); continue; }
+ const col = Object.assign(document.createElement('span'), { className: 'roll__col' });
+ const strip = Object.assign(document.createElement('span'), { className: 'roll__strip' });
+ strip.style.setProperty('--d', ch);
+ strip.style.setProperty('--i', i++);
+ for (let n = 0; n < 10; n++) strip.append(Object.assign(document.createElement('span'), { textContent: n }));
+ col.append(strip);
+ shown.append(col);
+ }
+ el.classList.add('roll');
+ el.replaceChildren(said, shown);
+ });
+ if (!('IntersectionObserver' in window)) { els.forEach((el) => el.classList.add('is-in')); return; }
+ const io = new IntersectionObserver((entries) => {
+ for (const e of entries) if (e.isIntersecting) { e.target.classList.add('is-in'); io.unobserve(e.target); }
+ }, { rootMargin: '0px 0px -15% 0px' });
+ els.forEach((el) => io.observe(el));
+})();
+```
+
+Study: 6 pages roll digit columns (stats, a year, coordinates), about 0.9-1.1 s per column on an
+expo-out, staggered by column. Use it for three or four figures at display size, never in running text
+and never for a value that changes after load. Reduced motion: the figure is set at its value.
### Accordion
@@ -245,7 +829,7 @@ it in JavaScript.
Things open from where they were triggered (`transform-origin` at the trigger). Nothing enters from
`scale(0)`; start at 0.95–0.98. A centred dialog is the one case that scales from its centre.
-## 5. Signature moves
+## 7. Signature moves
The direction sheet names one. Each of these was seen repeatedly on the studied gallery sites.
@@ -255,18 +839,31 @@ The direction sheet names one. Each of these was seen repeatedly on the studied
| Shutter image | Hero or showcase image opens from an edge, settling from 1.12 scale | Image shutter recipe |
| Scaling wordmark | A giant wordmark shrinks or grows a few percent as the hero scrolls out | Scroll-linked recipe on `scale` |
| Pinned story | A heading holds while its items scroll past | Sticky recipe |
-| Index with preview | Text rows; the hovered row shows its image | List with image preview recipe |
+| Index with preview | Text rows; the hovered row shows its image | Index with preview, anchored to the row |
| Curtain footer | The last section is revealed from under the page as you reach the end | `position: sticky; bottom: 0` footer under a main with a background and `z-index` |
| Slow crossfade | Hero image crossfades through 3–4 photographs, 5–6s each | Stacked images, opacity keyframes, pause when the tab is hidden |
| Edge-to-edge marquee | One line of very large type travels sideways, slowly | Duplicate the content, `translateX(-50%)` linear loop, pause on hover and under reduced motion |
| Drag row | A horizontally scrollable row of large images with scroll snapping | `overflow-x: auto; scroll-snap-type: x mandatory`, no library |
| Colour by chapter | Each chapter is its own full-bleed colour field, so the ground changes at section edges; a fixed header takes the ink of the chapter beneath | Section backgrounds in CSS; `base.js` sets `--header-ink` from `data-ink`. Never recolour the whole page from an observer |
+| Opening window | A type screen hands over to the big picture: a window in the middle of a held stage opens to full-bleed over about one screen | Opening window recipe |
+| Ink-fill statement | One statement fills from 45% to full ink as it rises through the screen | Ink fill recipe |
+| Sheet over a held picture | A full-bleed photograph holds for one screen; the next chapter slides up over it as an opaque sheet | A 100svh `position: sticky; top: 0` figure followed by a section with its own background and a higher `z-index`; no script |
+| Sideways gallery | A short row of pictures moves sideways while the vertical scroll holds the stage | Sideways gallery recipe |
+| Pushed line | One line of very large type is pushed sideways by the scroll, reading whole at the middle of its run | `animation-timeline: view()` on the line, `translateX` from 12% to -12%, linear; static where unsupported |
+| Rolling figures | The few figures that make the case roll up to their values once | Rolling figures recipe |
+| Carried picture | The picture clicked in a list travels into place as the next page's hero | Page to page recipe |
Pick by subject. A portfolio wants the index with preview; a restaurant wants the slow crossfade; a
product wants the shutter on its hero object. If the move says nothing about the subject, it is
decoration and the page is better without it.
-## 6. Reduced motion and performance
+Pick by subject, as before: the opening window for a product or a place with one great photograph; the
+sheet for chapters that each own a picture; the sideways gallery for a short set of rooms, kitchens or
+pieces; the pushed line for a brand whose claim is a word; rolling figures for a report, a fund or a
+practice that leads with numbers; the carried picture for a portfolio whose index and case pages are
+both built.
+
+## 8. Reduced motion and performance
- `prefers-reduced-motion: reduce` means fewer and gentler, not none: keep opacity and colour changes,
drop travel, scale, parallax and autoplay. All recipes above are written inside
@@ -281,7 +878,7 @@ decoration and the page is better without it.
- No scroll hijacking, no smooth-scroll library by default, no custom cursor. They cost usability,
which is 30% of an Awwwards score and the line most winners score lowest on.
-## 7. What gives generated motion away
+## 9. What gives generated motion away
- The same fade-up on every block.
- A dozen staggered entrances in the hero.
@@ -290,3 +887,77 @@ decoration and the page is better without it.
- Infinite loops that mean nothing: pulsing dots, floating shapes, shimmering text, rotating badges.
- A reveal that never fires and leaves a blank band in the page. Run `inspect.mjs` after the motion
pass and look at every screenshot for missing content.
+
+### Seen in the latest Sites of the Day
+
+Seen in the study, with how often, and what the house does instead.
+
+- **Preloaders and counters (60 of 99; 26 with a counter).** Half the usable pages were unreadable
+ 2.5 s after load, a third at 4.5 s; the preloaders sat mostly on pages that had already loaded, and
+ 25 of the 29 that loaded in under 3 s still showed nothing readable at 4.5 s. Counters stalled,
+ outlasted the load or were tweens with nothing behind them. House: no preloader. If a scene must
+ load, the HTML first screen (headline, picture, action) is there at once and the scene fades in
+ behind it when ready.
+- **Gates (10 of 99): enter, sound, age or gesture before any content.** House: none. Sound is a
+ control on the page, off by default.
+- **Scroll hijacking (16 wheel-driven scenes, 9 of them endless, plus 14 single screens where the wheel
+ does nothing).** The visitor cannot tell where they are, how much is left or how to get out, and the
+ keyboard and screen readers get nothing. Usability 6.01 against 6.50 for pages that scroll. House:
+ native scroll; any scene is driven by scroll position on a sticky stage that ends, with a count.
+- **Smooth-scroll libraries (67 of 99).** They make every scrubbed scene possible and every page lag
+ behind the hand: in the study's capture, frames taken 160 ms after a wheel step came back empty where
+ the settled frame was full on 52 of the 67, against 4 of the 32 without a library. House: native
+ scroll.
+- **Custom cursors (28 of 99).** Followers, image trails, a lens that smears the headline it sits on,
+ labels that only exist on hover; 10 of the 28 have any reduced-motion rule. House: the system cursor;
+ labels are on the page.
+- **Scramble and typewriter text (11 and 5).** The headline unreadable for four seconds, body copy
+ garbled mid-scroll, actions held back until the typing ends. House: not used. Real words arrive whole.
+- **Long held runways.** Pages with pins average twice the length for fewer words per screen; 17 pages
+ are 20 screens or longer, some with whole screens that hold only a slow rotation. House: about one
+ screen per step, three per stage, every held screen carries a line of text.
+- **Content held at zero opacity.** Reveals that keep text invisible until the scroll settles, inactive
+ items dimmed to 10-15%, statements left half pale. House: reveals only below the fold, once, never
+ longer than 900 ms in view; dims no lower than 40%; fills start at 45%.
+- **Motion over words.** Marquees and drifting objects that cross statements, a sliding line that crops
+ its own words, blur left on text mid-move. House: nothing moves across text the visitor is reading;
+ a moving line must read whole at some point of its run.
+- **Overshoot and bounce (19 stylesheets).** House: still banned on interface elements.
+- **Endless loops with no off switch.** Grain, pulsing dots, equalisers, spinning badges, running with no
+ reduced-motion rule on most pages. House: loops pause off screen and stop under reduced motion.
+
+Where the study's work does something the house bans, the house version: hairline progress bars and
+tick rails on held stages become a plain count in the body face ("2 of 4"); zero-padded counters
+("01/08") become a plain count or nothing; crossfading gradient grounds become flat chapter colours with
+hard cuts; monospace HUD labels become small text in the text face.
+
+## 10. Rules for motion
+
+1. **First frame.** The headline, the sentence and the picture are in the HTML and painted on the first
+ frame. The load sequence starts without waiting for the load event and is settled by 1.2 s, with
+ four elements at most.
+2. **No preloader, no counter, no gate, no smooth-scroll library, no custom cursor, no wheel capture.**
+3. **Curves.** `--ease-out` for anything under 600ms; `--ease-expo` for reveals of 800ms or more;
+ `--ease-in-out` for wipes and things that travel; `--ease-exit` only for things leaving for good;
+ `linear` for scroll-linked motion and loops; plain `ease` for colour. No overshoot.
+4. **Durations.** Press 140ms; hover colour 180-200ms; hover that moves 300-400ms; menus 240ms; reveals
+ 700-900ms; picture openings 1,100-1,300ms; exits 60-70% of the matching entrance.
+5. **Staggers.** Lines 80-110ms; list items 50-90ms; characters 20-40ms and only in a heading of one to
+ three words; four steps at most in any one sequence.
+6. **Reveals.** Fire once, when the element's top is 85-90% of the way down the viewport; rise 12-32px
+ or from a line mask; nothing in view stays hidden for more than 900ms; nothing above the fold waits
+ for scroll.
+7. **Held stages.** Sticky, at most two per page, about one screen per step, three screens per stage,
+ a count when there are more than two steps, a line of text on every held screen.
+8. **Scroll-linked travel.** Linear and locked to the scrollbar; parallax under 8% of the element;
+ scale between 0.94 and 1.15; built with scroll timelines inside `@supports`, static without them.
+9. **One of each.** One signature move; one scrubbed statement; one moving picture; one marquee at most.
+10. **Text stays readable.** Fills start at 45% ink; dims no lower than 40%; blur at most 8px and gone
+ once settled; nothing moves across text being read.
+11. **Colour by chapter** as hard cuts at section edges; the fixed header's ink follows in 300ms.
+12. **Horizontal motion.** The native drag row first; the pinned sideways gallery only for rows under
+ three screens long, with keyboard support.
+13. **Page to page.** View transitions, 480ms at most, off under reduced motion.
+14. **Reduced motion.** Every hidden state lives inside `prefers-reduced-motion: no-preference`; the
+ reduced page is the finished page; loops stop. Two in three award pages skip this, which is a
+ reason to do it, not a licence to skip it.
diff --git a/skills/taste-skill/references/tells.md b/skills/taste-skill/references/tells.md
index 875d4a9..9cfa4a8 100644
--- a/skills/taste-skill/references/tells.md
+++ b/skills/taste-skill/references/tells.md
@@ -104,7 +104,7 @@ effortless, cutting-edge, all-in-one …); the correction ("not just X, it's Y")
## 7. Motion tells
Identical fade-up on every block; a dozen staggered hero entrances; hover lift on every card; bounce
-easing; infinite loops that mean nothing; reveals that fail and leave a blank band. See `motion.md` §7.
+easing; infinite loops that mean nothing; reveals that fail and leave a blank band. See `motion.md` §9.
## 8. Why removal is not enough
diff --git a/skills/taste-skill/scripts/inspect.mjs b/skills/taste-skill/scripts/inspect.mjs
index d2dd333..35ac7f1 100644
--- a/skills/taste-skill/scripts/inspect.mjs
+++ b/skills/taste-skill/scripts/inspect.mjs
@@ -80,6 +80,22 @@ const MOTION_RECORDER = `(() => {
window.__motion = () => { window.__motionSample(); const v = [...document.querySelectorAll('video')]; return { ...c, videos: v.length, playingVideos: v.filter((x) => x.autoplay || !x.paused).length }; };
})();`;
+// Is the page's title on screen and readable: in the viewport, not faded, not masked away?
+const TITLE_SEEN = `(() => {
+ const h = document.querySelector('h1'); if (!h) return { found: false };
+ const r = h.getBoundingClientRect();
+ if (r.width < 2 || r.height < 2) return { found: true, visible: false, why: 'it has no size yet' };
+ if (r.bottom < 0 || r.top > innerHeight) return { found: false }; // a title below the first screen is the no-title check's business
+ let o = 1; for (let p = h; p && p !== document.documentElement; p = p.parentElement) { const cs = getComputedStyle(p); if (cs.visibility === 'hidden' || cs.display === 'none') return { found: true, visible: false, why: 'it is hidden' }; o *= +cs.opacity; }
+ if (o < 0.5) return { found: true, visible: false, why: 'it is at ' + Math.round(o * 100) + '% opacity' };
+ // text moved out of its own masked line, or a cover lying over it, shows up as nothing at its centre
+ const range = document.createRange(); range.selectNodeContents(h); const rr = range.getBoundingClientRect();
+ const x = Math.min(innerWidth - 1, Math.max(0, rr.left + rr.width / 2)), y = Math.min(innerHeight - 1, Math.max(0, rr.top + Math.min(rr.height, 80) / 2));
+ const hit = document.elementFromPoint(x, y);
+ if (hit && !h.contains(hit) && !hit.contains(h)) { const cs = getComputedStyle(hit); if (cs.backgroundColor !== 'rgba(0, 0, 0, 0)' || /^(IMG|VIDEO|CANVAS)$/.test(hit.tagName)) return { found: true, visible: false, why: 'something lies over it' }; }
+ return { found: true, visible: true };
+})()`;
+
async function sheet(frames, cols, cellW, cellH, path) {
const rows = Math.ceil(frames.length / cols);
await helper.setViewport({ width: cols * cellW, height: rows * cellH, dsf: 1 });
@@ -98,8 +114,10 @@ try {
const page = await browser.newPage({ width: w, height: h, dsf: 1, mobile: w < 600 });
await page.send('Page.addScriptToEvaluateOnNewDocument', { source: MOTION_RECORDER }).catch(() => {});
const how = await page.goto(url, { timeoutMs: 30000, settleMs: 600 });
+ await sleep(600); // about 1.2s after the load event: is the title there to read yet?
+ const early = await page.eval(TITLE_SEEN).catch(() => null);
await page.eval('document.fonts.ready.then(() => true)').catch(() => {});
- await sleep(1400); // let the load choreography finish before judging the first screen
+ await sleep(800); // let the load choreography finish before judging the first screen
const fold = join(outDir, `${label}-fold.jpg`);
await page.screenshot({ path: fold, quality: 82 });
const metrics = await page.eval(probe);
@@ -137,6 +155,8 @@ try {
sheets.push(p);
}
let findings = judge(m, { width: w, allow });
+ // a third of the studied award pages were still unreadable 4.5s after load; the house sequence is over by 1.2s
+ if (!appMode && early && early.found && !early.visible && !allow.includes('late-title')) findings.push({ level: 'FAIL', id: 'late-title', width: w, message: `The title is not readable 1.2s after the page loaded (${early.why}).`, fix: 'Put the headline in the HTML, painted on the first frame; the load sequence only adds arrival and is settled by 1.2s (references/motion.md, "Load sequence in 1.2 seconds"). No preloader, no gate, no waiting for the load event.' });
if (lay) findings.push(...judgeLayout(lay, { width: w, allow }));
if (appMode) {
findings = findings.filter((f) => !APP_SKIP.has(f.id) && f.id !== 'no-title' && f.id !== 'small-title');
@@ -167,6 +187,25 @@ try {
report.images.push({ viewport: label, width: w, fold, pages: sheets });
await page.close();
}
+ // Under prefers-reduced-motion the page is the finished page: nothing may stay hidden waiting for an
+ // animation that will not run. Two in three studied award pages had no reduced-motion rules at all.
+ if (!appMode && widths.some((x) => x >= 1100) && !allow.includes('reduced-hidden')) {
+ const rp = await browser.newPage({ width: 1440, height: 900, dsf: 1, reducedMotion: true });
+ try {
+ await rp.goto(url, { timeoutMs: 30000, settleMs: 1500 });
+ const hidden = await rp.eval(`(() => {
+ const out = []; const w = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT); const rg = document.createRange();
+ for (let n = w.nextNode(); n; n = w.nextNode()) {
+ const t = n.nodeValue.trim(); const el = n.parentElement; if (t.length < 3 || !el || el.closest('script, style, noscript, [aria-hidden="true"]')) continue;
+ rg.selectNodeContents(n); const r = rg.getBoundingClientRect(); if (r.width < 2 || r.top > innerHeight || r.bottom < 0) continue;
+ let o = 1, gone = false; for (let p = el; p && p !== document.documentElement; p = p.parentElement) { const cs = getComputedStyle(p); if (cs.visibility === 'hidden') { gone = true; break; } o *= +cs.opacity; }
+ if (gone || o < 0.1) out.push(t.slice(0, 40));
+ }
+ return out;
+ })()`).catch(() => []);
+ if (hidden.length >= 2) report.findings.push({ level: 'FAIL', id: 'reduced-hidden', width: 1440, message: `With reduced motion requested, ${hidden.length} text block(s) on the first screen stay invisible: ` + hidden.slice(0, 4).map((t) => `"${t}"`).join(', '), fix: 'Put every hidden starting state inside @media (prefers-reduced-motion: no-preference); the reduced page is the finished page (references/motion.md §8).' });
+ } finally { await rp.close(); }
+ }
} finally {
await browser.close();
if (server) server.close();
diff --git a/skills/taste-skill/scripts/lib/probe.mjs b/skills/taste-skill/scripts/lib/probe.mjs
index bc1b795..301045a 100644
--- a/skills/taste-skill/scripts/lib/probe.mjs
+++ b/skills/taste-skill/scripts/lib/probe.mjs
@@ -589,7 +589,8 @@ export function layout() {
}
const flow = boxes.filter((b) => b.layer !== 'fixed');
// 1. the frame: how far the page's content comes to each edge (full-bleed things say nothing about margins)
- const framed = flow.filter((b) => b.r - b.l < W * 0.97 && b.r > 0 && b.l < W);
+ // a row that runs off one edge (a carousel, a bled display line) says nothing about that side's margin
+ const framed = flow.filter((b) => b.r - b.l < W * 0.97 && b.l >= -1 && b.r <= W + 1);
const L = framed.length ? Math.max(0, pct(framed.map((b) => b.l), 0.02)) : null;
const R = framed.length ? Math.max(0, W - pct(framed.map((b) => b.r), 0.98)) : null;
// 2. sections: descend through single wrappers, then take the blocks
@@ -612,8 +613,15 @@ export function layout() {
const headRe = /^H[1-4]$/;
const heading = text.filter((b) => (b.el.closest('h1,h2,h3,h4,[role="heading"]') || b.size >= Math.max(22, bodySize * 1.35)) && b.t <= top + Math.max(520, (bot - top) * 0.45)).sort((a, b) => b.size - a.size)[0];
const cs = getComputedStyle(s);
+ // the widest stretch across the section's content band that nothing covers, edge to edge excluded
+ let middle = 0;
+ if (own.length >= 2) {
+ const iv = own.map((b) => [Math.max(0, b.l), Math.min(W, b.r)]).sort((a, b) => a[0] - b[0]);
+ let end = iv[0][1];
+ for (const [a, b2] of iv.slice(1)) { if (a > end) middle = Math.max(middle, a - end); end = Math.max(end, b2); }
+ }
return {
- sel: sel(s), tag: s.tagName.toLowerCase(), top: Math.round(top), height: Math.round(r.height), words, media: media.length,
+ sel: sel(s), tag: s.tagName.toLowerCase(), top: Math.round(top), height: Math.round(r.height), words, media: media.length, middle: Math.round(middle),
heading: heading ? { text: heading.text, size: Math.round(heading.size), tag: (heading.el.closest('h1,h2,h3,h4,h5,h6') || heading.el).tagName.toLowerCase() } : null,
left: own.length ? Math.round(Math.max(0, Math.min(...own.map((b) => b.l)))) : null, right: own.length ? Math.round(Math.max(0, W - Math.max(...own.map((b) => b.r)))) : null,
textLeft: text.length ? Math.round(Math.min(...text.map((b) => b.l))) : null, textRight: text.length ? Math.round(W - Math.max(...text.map((b) => b.r))) : null,
@@ -636,14 +644,20 @@ export function layout() {
// 4. the title
const h1s = [...document.querySelectorAll('h1')].filter((h) => { const r = h.getBoundingClientRect(); return r.width > 0 && r.height > 0 && shown(h); }).map((h) => { const r = h.getBoundingClientRect(); return { text: (h.innerText || '').replace(/\s+/g, ' ').trim().slice(0, 80), size: Math.round(parseFloat(getComputedStyle(h).fontSize)), top: Math.round(r.top + SY), firstScreen: r.top + SY < H * 0.95 }; });
// 5. text pressed against the edge of the screen (type deliberately bled past the edge is a different device)
- const edge = W < 600 ? 12 : 16;
- const edgeText = flow.filter((b) => b.kind === 'text' && b.chars >= 3 && b.size < 40 && b.l >= -1 && b.r <= W + 1 && (b.l < edge || b.r > W - edge) && !b.el.closest('[class*="marquee" i],[class*="ticker" i],marquee,[data-ui],table')).slice(0, 8).map((b) => ({ text: b.text, side: b.l < edge ? 'left' : 'right', px: Math.round(b.l < edge ? b.l : W - b.r) }));
+ // fixed headers and corner labels count here: that is where text most often creeps to the edge
+ const edge = 16;
+ const edgeText = boxes.filter((b) => b.kind === 'text' && b.chars >= 3 && b.size < 40 && b.l >= -1 && b.r <= W + 1 && (b.l < edge || b.r > W - edge) && !b.el.closest('[class*="marquee" i],[class*="ticker" i],marquee,[data-ui],table')).slice(0, 8).map((b) => ({ text: b.text, side: b.l < edge ? 'left' : 'right', px: Math.round(b.l < edge ? b.l : W - b.r) }));
+ // a fixed picture layer that covers the screen (a canvas scene, a film) hides what the DOM cannot see
+ const stage = boxes.some((b) => b.layer === 'fixed' && b.kind === 'media' && (b.r - b.l) * (b.b - b.t) >= W * H * 0.9);
+ // the first screen: is the title a bare name, with nothing at reading size saying what this is?
+ const firstText = flow.filter((b) => b.kind === 'text' && b.t < H * 0.95 && b.size >= 18 && !b.el.closest('h1, nav, header nav, button, a'));
+ const explains = firstText.some((b) => b.text.split(' ').length >= 6 || b.chars >= 36);
// 6. left edges used by running text and headings (left-aligned blocks only)
// headings and paragraphs only: the items of a grid or a list each start their own column on purpose
const lefts = flow.filter((b) => b.kind === 'text' && b.size >= 14 && !/center|right|end/.test(b.align) && b.l >= 0 && (b.el.closest('h1, h2, h3') || (b.chars >= 60 && b.el.closest('p, blockquote'))) && !b.el.closest('nav, footer, [data-ui], table, li, figcaption')).map((b) => b.l).sort((a, b) => a - b);
const edges = []; for (const x of lefts) { const e = edges.find((g) => Math.abs(g.x - x) <= 10); if (e) e.n++; else edges.push({ x: Math.round(x), n: 1 }); }
edges.sort((a, b) => b.n - a.n);
- return { viewport: { w: W, h: H }, pageH, margins: { left: L == null ? null : Math.round(L), right: R == null ? null : Math.round(R) }, sections, gaps, h1s, edgeText, edges: edges.slice(0, 12), leftBlocks: lefts.length, bodySize };
+ return { viewport: { w: W, h: H }, pageH, margins: { left: L == null ? null : Math.round(L), right: R == null ? null : Math.round(R) }, sections, gaps, h1s, edgeText, edges: edges.slice(0, 12), leftBlocks: lefts.length, bodySize, stage, explains };
}
// app() measures what an app screen (dashboard, admin, settings, inbox) gets right or wrong: the shell,
diff --git a/skills/taste-skill/scripts/lib/rules.mjs b/skills/taste-skill/scripts/lib/rules.mjs
index b7b4ff6..0a2d935 100644
--- a/skills/taste-skill/scripts/lib/rules.mjs
+++ b/skills/taste-skill/scripts/lib/rules.mjs
@@ -147,6 +147,9 @@ export function judgeLayout(L, { width = L.viewport.w, allow = [] } = {}) {
const diff = Math.abs(left - right), wide = Math.max(left, right);
if (diff >= Math.max(mobile ? 14 : 40, width * 0.045) && wide >= (mobile ? 28 : width * 0.07)) {
add('FAIL', 'off-centre', `The page sits off-centre: its content comes to ${left}px from the left edge but only to ${right}px from the right, at ${width}px.`, `Give the page one pair of equal margins. Check the wrapper for a max-width without margin-inline: auto, a grid with an empty last column, or padding on one side only. If one side is meant to hold air, it must still be closed by something that reaches the margin (a picture, the navigation's last item, a figure).`);
+ } else if (diff >= (mobile ? 12 : 16)) {
+ // strong sites hold their two margins within a few pixels; a 20-30px drift is the "shifted" look
+ add('WARN', 'off-centre', `The margins differ: ${left}px on the left, ${right}px on the right, at ${width}px.`, 'Put the navigation and the content on one pair of margins; check for padding on one side only, a scrollbar gutter, or a header on another inset than the page.');
}
}
// sections whose content huddles on one side, leaving the other half of the screen empty
@@ -154,10 +157,13 @@ export function judgeLayout(L, { width = L.viewport.w, allow = [] } = {}) {
const lop = L.sections.filter((s) => !s.hero && !s.footer && !s.fullBleed && !s.pinned && s.left != null && s.words >= 12 && s.height >= 180 && Math.min(s.left, s.right) <= Math.max(left, right) + 24 && Math.max(s.left, s.right) >= width * 0.42);
if (lop.length >= 2) add('FAIL', 'lopsided', `${lop.length} sections keep all their content on one side and leave ${Math.round(Math.max(...lop.map((s) => Math.max(s.left, s.right))) / width * 100)}% of the width empty: ` + lop.slice(0, 4).map((s) => `${s.heading ? '"' + s.heading.text + '"' : s.sel} (${s.right > s.left ? 'right' : 'left'} ${Math.max(s.left, s.right)}px empty)`).join('; '), 'Use the whole width the page has set up: put the section\'s picture, its second column, its list or its figure in the empty half, or set the text larger across the grid. Empty space must be placed, with something on each side of it.');
else if (lop.length) add('WARN', 'lopsided', `A section keeps its content on one side and leaves ${Math.max(lop[0].left, lop[0].right)}px of the width empty: ${lop[0].heading ? '"' + lop[0].heading.text + '"' : lop[0].sel}.`, 'Fill the other side with what the section has (its picture, a second column, the figure), or defend the void in one sentence.');
+ // the same hole with the empty part in the middle: a card at the left, a lone button at the right
+ const hollow = L.sections.filter((s) => !s.hero && !s.footer && !s.fullBleed && !s.pinned && s.words >= 12 && s.middle >= width * 0.45);
+ if (hollow.length) add('WARN', 'empty-middle', `${hollow.length} section(s) have content at both edges and ${Math.max(...hollow.map((s) => s.middle))}px of nothing between: ` + hollow.slice(0, 3).map((s) => s.heading ? '"' + s.heading.text + '"' : s.sel).join('; '), 'Bring the two parts together on the grid, or put the picture or figure of the section in the middle. An empty middle third reads as a hole, the same as an empty half.');
}
// blank stretches: nothing at all for a long run down the page
const big = L.gaps.filter((g) => g.height >= H * 0.6), mid = L.gaps.filter((g) => g.height >= H * 0.42 && g.height < H * 0.6);
- if (big.length || mid.length >= 2) add('FAIL', 'blank-gap', `${big.length + mid.length} stretch(es) of the page hold nothing at all: ` + [...big, ...mid].slice(0, 4).map((g) => `${g.height}px at ${g.top}px`).join('; ') + ` (the screen is ${H}px tall).`, 'Close the gap: a section gap is 120–220px on desktop and 72–112px on a phone. Look for a min-height: 100vh on a short section, an empty grid row, a hidden element still holding its space, or a reveal that never fired. A deliberate rest is a placed picture or colour field, not nothing.');
+ if (big.length || mid.length >= 2) add(L.stage ? 'WARN' : 'FAIL', 'blank-gap', `${big.length + mid.length} stretch(es) of the page hold nothing at all: ` + [...big, ...mid].slice(0, 4).map((g) => `${g.height}px at ${g.top}px`).join('; ') + ` (the screen is ${H}px tall).`, (L.stage ? 'A fixed picture layer covers the screen here, so the DOM cannot tell whether the stretch is empty: check the screenshots. ' : '') + 'Close the gap: a section gap is 120–240px on desktop and 72–112px on a phone. Look for a min-height: 100vh on a short section, an empty grid row, a hidden element still holding its space, or a reveal that never fired. A deliberate rest is a placed picture or colour field, not nothing.');
else if (mid.length) add('WARN', 'blank-gap', `A ${mid[0].height}px stretch at ${mid[0].top}px holds nothing.`, 'Check that it is a deliberate rest (once per page at most); otherwise close it to the normal section gap.');
// the title: one h1, on the first screen, that says what this is
if (!L.h1s.length) add('FAIL', 'no-title', 'The page has no visible h1.', 'Give the first screen a clear title in an h1 that says what this is (a name with what it does, the product with what it is for, the event with its date and place).');
@@ -165,6 +171,7 @@ export function judgeLayout(L, { width = L.viewport.w, allow = [] } = {}) {
const first = L.h1s[0];
if (!first.firstScreen) add('FAIL', 'no-title', `The h1 ("${first.text.slice(0, 50)}") is not on the first screen (it starts ${first.top}px down).`, 'The title belongs on the first screen, where a visitor decides whether to stay.');
else if (first.size < (mobile ? 26 : 32)) add('WARN', 'small-title', `The h1 is ${first.size}px ("${first.text.slice(0, 50)}").`, 'Set the title at display size, or make the large text of the first screen the h1.');
+ if (first.firstScreen && first.text.split(' ').length <= 3 && L.explains === false) add('WARN', 'name-only-title', `The h1 is a bare name ("${first.text.slice(0, 40)}") and nothing else on the first screen says what this is.`, 'Keep the name if it leads, and give the line under it (18px or more) the plain words: what it is, for whom, where or when. In the study of 97 Sites of the Day, first screens that named nothing lost usability and content points.');
if (L.h1s.length > 1) add('WARN', 'many-h1', `${L.h1s.length} h1 elements.`, 'One h1 per page; section titles are h2.');
}
// sections with running text but no heading: the reader cannot tell what they are
@@ -172,7 +179,9 @@ export function judgeLayout(L, { width = L.viewport.w, allow = [] } = {}) {
if (untitled.length >= 2) add('FAIL', 'untitled-section', `${untitled.length} sections carry text but no heading: ` + untitled.slice(0, 4).map((s) => `${s.sel} at ${s.top}px (${s.words} words)`).join('; '), 'Give each section a short heading that names what it holds (the menu, the rooms, how it works, the price), in the heading face at the section size.');
else if (untitled.length) add('WARN', 'untitled-section', `A section carries text but no heading: ${untitled[0].sel} at ${untitled[0].top}px.`, 'Name it with a short heading unless it is the continuation of the section above.');
// text pressed against the screen edge
- if (L.edgeText.length) add('FAIL', 'edge-text', `${L.edgeText.length} text block(s) sit within ${mobile ? 12 : 16}px of the screen edge: ` + L.edgeText.slice(0, 4).map((t) => `"${t.text.slice(0, 30)}" (${t.px}px from the ${t.side})`).join('; '), `Keep text inside the page margin (${mobile ? '16–20px' : '16–32px or more'}). Only display type deliberately bled past the edge may touch it.`);
+ const tight = L.edgeText.filter((t) => t.px < (mobile ? 12 : 16)), near = mobile ? L.edgeText.filter((t) => t.px >= 12) : [];
+ if (near.length && !tight.length) add('WARN', 'edge-text', `${near.length} text block(s) sit 12–15px from the phone's edge: ` + near.slice(0, 3).map((t) => `"${t.text.slice(0, 30)}" (${t.px}px)`).join('; '), 'The page margin is 16–20px on a phone; the header and the corner labels sit on it too.');
+ if (tight.length) add('FAIL', 'edge-text', `${tight.length} text block(s) sit within ${mobile ? 12 : 16}px of the screen edge: ` + tight.slice(0, 4).map((t) => `"${t.text.slice(0, 30)}" (${t.px}px from the ${t.side})`).join('; '), `Keep text inside the page margin (${mobile ? '16–20px' : '16–32px or more'}). Only display type deliberately bled past the edge may touch it.`);
// too many left edges: nothing lines up
if (!mobile && L.edges.length > 6 && L.leftBlocks >= 8) {
const top3 = L.edges.slice(0, 3).reduce((a, e) => a + e.n, 0) / L.leftBlocks;
@@ -219,4 +228,4 @@ export function judgeApp(A, m, { width = A.viewport.w, allow = [] } = {}) {
return out;
}
-export const RULE_IDS = ['headline-lines', 'statement-length', 'focal-point', 'hero-words', 'mixed-font-headline', 'eyebrow', 'mono', 'numbering', 'micro-label', 'emoji', 'gradient', 'gradient-text', 'shadow', 'text-shadow', 'button-fx', 'hairline', 'outlined-box', 'dashed', 'glass', 'icon-cards', 'card-rows', 'pill-nav', 'palette-claude', 'palette-terracotta', 'palette-cream', 'palette-purple', 'default-link', 'contrast', 'font-count', 'font-fallback', 'size-count', 'body-size', 'measure', 'small-text', 'all-centred', 'ui-wrapper', 'overflow', 'broken-image', 'no-hero', 'first-action', 'grey-body', 'blend-text', 'covered-text', 'clipped-text', 'pinned-over-picture', 'empty-screens', 'long-pin', 'side-scroll', 'few-pictures', 'no-real-pictures', 'no-footage', 'still-page', 'off-centre', 'lopsided', 'blank-gap', 'no-title', 'small-title', 'many-h1', 'untitled-section', 'edge-text', 'ragged-edges', 'sidebar-phone', 'unused-canvas', 'heavy-shadow', 'heavy-borders', 'radius-mix', 'icon-chips', 'numeric-align', 'tabular', 'rainbow-chart', 'placeholder-data', 'tiny-text', 'colour-sprawl', 'ragged-row', 'below-fold', 'app-title-size', 'kpi-size', 'icon-tiles'];
+export const RULE_IDS = ['headline-lines', 'statement-length', 'focal-point', 'hero-words', 'mixed-font-headline', 'eyebrow', 'mono', 'numbering', 'micro-label', 'emoji', 'gradient', 'gradient-text', 'shadow', 'text-shadow', 'button-fx', 'hairline', 'outlined-box', 'dashed', 'glass', 'icon-cards', 'card-rows', 'pill-nav', 'palette-claude', 'palette-terracotta', 'palette-cream', 'palette-purple', 'default-link', 'contrast', 'font-count', 'font-fallback', 'size-count', 'body-size', 'measure', 'small-text', 'all-centred', 'ui-wrapper', 'overflow', 'broken-image', 'no-hero', 'first-action', 'grey-body', 'blend-text', 'covered-text', 'clipped-text', 'pinned-over-picture', 'empty-screens', 'long-pin', 'side-scroll', 'few-pictures', 'no-real-pictures', 'no-footage', 'still-page', 'off-centre', 'lopsided', 'blank-gap', 'no-title', 'small-title', 'many-h1', 'name-only-title', 'empty-middle', 'untitled-section', 'edge-text', 'ragged-edges', 'sidebar-phone', 'unused-canvas', 'heavy-shadow', 'heavy-borders', 'radius-mix', 'icon-chips', 'numeric-align', 'tabular', 'rainbow-chart', 'placeholder-data', 'tiny-text', 'colour-sprawl', 'ragged-row', 'below-fold', 'app-title-size', 'kpi-size', 'icon-tiles', 'late-title', 'reduced-hidden'];