From 2105a76c695d05f9d765b46b80e873389991fb98 Mon Sep 17 00:00:00 2001 From: Justin Schroeder Date: Sun, 22 Nov 2026 17:10:49 -0500 Subject: [PATCH] docs: note that stretching flex items (flex: 1) can't animate their resize (#70) --- docs/src/sections/SectionUsage.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/src/sections/SectionUsage.vue b/docs/src/sections/SectionUsage.vue index 21ec0504..5870d657 100644 --- a/docs/src/sections/SectionUsage.vue +++ b/docs/src/sections/SectionUsage.vue @@ -122,6 +122,15 @@ import IconQwik from "../components/IconQwik.vue" container to reserve the scrollbar’s space, and overflow-x: clip if horizontal scrolling isn’t needed. + + Flex and grid layouts (including gap and wrapping) animate + smoothly when items have their own size. Items that stretch to + share space (flex: 1, flex-grow) change size + when a sibling is added or removed, and that resize can’t be smoothly + animated alongside the movement — give them a fixed basis + (flex: 0 0 120px) or use a grid with fixed tracks for the + smoothest result. +

If your project’s specific requirements make it necessary to dramatically change the default animations, then you should