Skip to content

176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.

docs: credit AnimatePresence to Framer Motion in FLIP Technique's README and record its two toolbar rules in the sheet

matin4fa5a869ed7f
diff --git a/animations/03-page-transitions/flip-technique/README.md b/animations/03-page-transitions/flip-technique/README.md
index e9729f1f..df1a40b4 100644
--- a/animations/03-page-transitions/flip-technique/README.md
+++ b/animations/03-page-transitions/flip-technique/README.md
@@ -51,7 +51,7 @@ Cards are matched across the re-render by a stable `id`, so a card that moves fr
- **Read then write, once.** Batch all `getBoundingClientRect` reads (First) before any style writes (Last/Invert) to avoid layout thrashing. Reading and writing in an interleaved loop forces repeated synchronous layouts.
- **Size changes need scale.** This demo animates position via `translate`; when cards also change dimensions (list mode), add `scaleX`/`scaleY` from the old size to the new, or the resize will pop rather than glide.
- **`will-change: transform`** on the animated cards hints the compositor to promote them to their own layer ahead of time, smoothing the first frame — used here on `.flip-card`.
-- **Library equivalents.** React's `<AnimatePresence>` and Framer Motion's `layout` prop implement FLIP automatically for layout changes. GSAP's Flip plugin is a direct, batteries-included implementation. The View Transitions API achieves similar layout-change animation natively by snapshotting before and after, without manual rect math.
+- **Library equivalents.** Framer Motion's `layout` prop implements FLIP automatically for layout changes (its `AnimatePresence` handles items that leave). GSAP's Flip plugin is a direct, batteries-included implementation. The View Transitions API achieves similar layout-change animation natively by snapshotting before and after, without manual rect math.
## See also
- [Shared Element Transition](../shared-element-transition/) — the same method for one element across pages
diff --git a/docs/superpowers/plans/2026-09-29-transitions-content.md b/docs/superpowers/plans/2026-09-29-transitions-content.md
index 6f7f3eea..5801029c 100644
--- a/docs/superpowers/plans/2026-09-29-transitions-content.md
+++ b/docs/superpowers/plans/2026-09-29-transitions-content.md
@@ -994,8 +994,8 @@ Live-spring damping, measured with the demo's own spring loop. The loop takes on
- **Stage font:** site font.
- **Stage:**
- The toolbar and the card grid stay; the Invert badges go (`.invert-badge` and each card's badge element).
- - Toolbar buttons (`.tb-btn`): 13px text, `padding:0 10px`, `min-height:44px` at every size, in `var(--ui-muted)`; the active layout stays in the accent colour.
- - Toolbar labels become plain words: "Shuffle", "Sort by color", "Sort by size", "3 columns", "2 columns", "List" (were "⟳ Shuffle", "3 cols", "2 cols"). The six fit on one line on computers and tablets and on two lines on 375px and 320px phones (measured).
+ - Toolbar buttons (`.tb-btn`): 13px text, `padding:0 10px`, `min-height:44px` and `min-width:44px` at every size, in `var(--ui-muted)`; the active layout stays in the accent colour. `min-width:44px` matters for List, which is 42.9px wide without it. On phones narrower than 360px a spacing rule, `@media(max-width:359px){.stage-toolbar{gap:4px;padding:10px 8px}}`, keeps the six buttons on two lines (at 320px they take three without it).
+ - Toolbar labels become plain words: "Shuffle", "Sort by color", "Sort by size", "3 columns", "2 columns", "List" (were "⟳ Shuffle", "3 cols", "2 cols"). The six fit on one line on computers and tablets and on two lines at 375 and 320px with those rules (measured).
- `.card-meta` goes from `opacity:.5` to `.8`: 3.0:1 becomes 5.1:1 on the cards. `.card-num`, the large faint number, is decoration and stays.
- **The cards get shorter** so the default layout fits the laptop's first screen: in `renderCards()`, 110px for tall cards and 86px for short ones (were 140px and 110px); list rows stay 56px.
- `#card-grid` gets `min-height:var(--rows-h)`, with `--rows-h:230px`, the height of the three-column grid, and `--rows-h:350px` in two columns (`data-columns="2"`, which `renderCards()` sets on the grid), the height of that grid in the starting order, so a new order never changes the stage height. Sorted by size the two-column grid is only 326px: without its own minimum the player bar jumped up 24px when the first glide of a Show me run ended, and back down when the way back began. It also gets `align-content:start`. Without it the grid spreads any extra height over its rows. In a scratch grid in headless Chrome, a 440px min-height moved the second row from 120px down to 225px. Then Sort by size would space the rows apart, and the hold below would glide the cards to stretched rows and make them jump when it is released.
@@ -1066,6 +1066,7 @@ None: leave out the `details.hb-options` block.
- "The double `requestAnimationFrame` guarantees the inverted (start) state is committed before the transition to zero begins." becomes "Reading `offsetWidth` between Invert and Play makes the browser apply the inverted (start) positions before the transition to zero begins."
- In the snippet, the INVERT block reads every card's rect before it writes anything, as the page does and as the Production notes' "Read then write, once" says: `const last = newCards.map(c => c.getBoundingClientRect());` before the loop, then `newCards.forEach((c, i) => { const f = first[c.id]; const dx = f.left - last[i].left, dy = f.top - last[i].top; …` inside it.
-- **README Production notes:** unchanged
+- **README Production notes:** the start of the "**Library equivalents.**" bullet changes, because `<AnimatePresence>` is Framer Motion's component for items that leave and is not FLIP itself. "React's `<AnimatePresence>` and Framer Motion's `layout` prop implement FLIP automatically for layout changes." becomes "Framer Motion's `layout` prop implements FLIP automatically for layout changes (its `AnimatePresence` handles items that leave)." The rest is unchanged.
- **Category line:** `03.12 · Page Transitions`
- **Pager:** Previous: Dissolve Transition (`../dissolve/`) · Next: none
+- **Final fix wave:** the page is unchanged. The README's library line was corrected, and the toolbar lines above now record the two rules the page has (`min-width:44px` and the spacing rule below 360px).