{"summary":"Набор карточек, расставленных по кольцу: изнутри их края проходят через стекло с цветной каймой, снаружи появляется глубина резкости; на карточках — текучий градиент.","notes":"<p>Обычная карусель карточек — это просто ряд, который сдвигается влево и вправо. Если расставить тот же ряд по кольцу, у карточек появляется глубина: изнутри боковые карточки окружают зрителя, снаружи центр остаётся чётким, а дальние размываются. Основные моменты:</p>\n        <ol>\n        <li><strong>Два вида</strong>: карточки идут по одной дуге. При положительной кривизне зритель внутри кольца, при отрицательной — снаружи. Если при переключении менять кривизну непрерывно, весь ряд плавно изгибается из одного кольца в другое.</li>\n        <li><strong>Внутри</strong>: подходит для содержимого, которое хочется спокойно рассматривать, например портфолио и галерей. Зритель стоит чуть позади центра кольца, перспектива 860px; боковые карточки ближе и крупнее, на экране помещается пять.</li>\n        <li><strong>Стеклянный край</strong>: по бокам экрана — полосы стекла шириной 160px. Чем ближе к внешнему краю, тем ближе к центру берётся изображение, поэтому верхние и нижние края карточек расходятся наружу; красный смещается сильнее синего, получается мягкая цветная кайма.</li>\n        <li><strong>Снаружи и глубина резкости</strong>: подходит, когда смотрят на одну вещь за раз, например выбирают обложку. Кольцо видно на уровне глаз, перспектива 1500px; центр остаётся чётким, а края и задний ряд постепенно размываются и бледнеют. Размытие считается для каждого пикселя отдельно, поэтому при вращении ничего не мерцает.</li>\n        <li><strong>Текучий градиент и переворот</strong>: лицевая сторона каждой карточки — текучий градиент из четырёх цветов, который медленно течёт по кругу и повторяется без шва. При переходе к виду снаружи карточки одна за другой переворачиваются от центра к краям и показывают изображение на обороте.</li>\n        </ol>\n        <p>Кроме того, у карточек нет тени и отражения: на белом фоне они выглядят грязно, а расстояние передаётся только размером, размытием и бледностью. При включённом параметре «Уменьшение движения» градиенты не текут, а вид переключается сразу.</p>\n        <h2>Параметры</h2>\n        <dl class=\"params\">\n        <dt>Карточки</dt><dd>180 × 300px, промежуток 18px, всего 22; радиус кольца около 693px</dd>\n        <dt>Внутри</dt><dd>перспектива 860px; стеклянный край 160px, смещение 0,4 его ширины, показатель затухания 2,4; цветная кайма 25%</dd>\n        <dt>Снаружи</dt><dd>перспектива 1500px; размытие начинается в 110px от центра, до 14px; задний ряд бледнее на 50%</dd>\n        <dt>Градиент</dt><dd>4 цвета, 3 слоя шума, искажённые дважды; течёт со скоростью 0,2 ячейки шума в секунду</dd>\n        <dt>Углы</dt><dd>непрерывное скругление superellipse(2), 32px</dd>\n        <dt>Переключение</dt><dd>вид 1100ms; переворот 1800ms, от центра к краям</dd>\n        </dl>\n        <p>Прилагаемый промпт сначала спрашивает, где разместить эффект, что будет на карточках, с какого вида начинать и кому показывать панель настроек; после подтверждения он строит эффект с параметрами из видео и добавляет панель ползунков для настройки в реальном времени.</p>","prompt":"Build a ring of cards in my project, in two views. Inside: the viewer stands in the middle of the ring, the cards near the edges come closer and grow, and they pass under a rim of glass at each side of the frame that bends them and splits their colors. Outside: the ring is seen at eye level from outside, the front card is in focus, the sides and the far side soften with distance, and switching to it turns the cards over, one after another, from flowing gradients to pictures. Every card's gradient flows slowly. A settings panel shows the key numbers as sliders, set to the defaults below, so they can be tuned live.\n\nEvery value here comes from a working demo and is the default, not a requirement. Build it with these values first, then let me tune them with the panel (section 8).\n\nBefore building, look at my project (section 0) and ask me these, one at a time, with the recommended answer marked:\n1. Where it goes: its own page or section (recommended), or a component I name.\n2. What the cards hold: flowing gradients on the front and my pictures on the back (recommended; tell me where the pictures come from), gradients only, or pictures only (then skip the turn-over and show the pictures in both views).\n3. The view it opens in: Inside (recommended) or Outside, and whether people can switch (a two-option segmented control, recommended).\n4. The settings panel: shown to everyone, shown only in development, or hidden behind a toggle.\nThen sum up my answers, say how you will build it on my platform (section 9), and wait for my go-ahead.\n\n0. Start from what exists\n- Find how the project draws (DOM, canvas or WebGL, a native view tree, a GPU renderer), its framework and versions, where the pictures live, its slider or form components, and whether it has a dark mode and a reduced-motion setting.\n- Tell me in a few lines what you found before asking.\n\n1. The ring\n- N cards of w x h, a gap between them, one step = w + gap apart along an arc. Default: N = 22, 180 x 300, gap 18, so step 198 and radius R = N * step / (2 * PI) ≈ 693. The ring's circumference is exactly the row, so it closes on itself.\n- Each card i sits at s = wrap(i * step - offset) along the arc, wrapped into [-N * step / 2, N * step / 2). offset is how far the row has moved; the front card is round(offset / step) mod N.\n- One signed curvature c = bend / R places every card: for c = 0, x = s, z = 0, a = 0; otherwise a = s * c, x = sin(a) / c, z = (1 - cos(a)) / c. x runs across, z toward the viewer, and the card turns by a about its upright middle. bend = 1 is Inside (the ring curves toward the viewer), bend = -1 is Outside.\n- Switching views eases bend from one to the other over 1100ms with cubic-bezier(0.65, 0, 0.35, 1), so the row visibly bends from one ring into the other.\n\n2. The camera\n- Perspective P is the eye's distance from the front card: P = mix(pIn, pOut, (1 - bend) / 2), so it moves with the switch. Defaults: pIn 860 (a little behind the ring's center, so the row curves without pulling the side cards too far; at P = R the eye is exactly at the center), pOut 1500 (well back, so the ring turns away gently).\n- The eye looks straight on, at the cards' middle height. A point (x, y, z) lands on screen at x * P / (P - z), y * P / (P - z), from the frame's center.\n- Leave out a card when any part of it is less than 140 units in front of the eye, or when it is wholly off the frame.\n- Inside, the 22-card ring at pIn 860 shows five cards: three whole, the outer two going into the glass. Outside it shows the whole ring, the far side between and beyond the near cards.\n\n3. The card face\n- Corners: a continuous curve, a superellipse of exponent 4 over a 32px radius, the same curve as CSS corner-shape: superellipse(2). In a shader, the distance to the outline is: d = abs(p) - (w, h) / 2 + r; m = max(d, 0); dist = (m.x^4 + m.y^4)^(1/4) + min(max(d.x, d.y), 0) - r.\n- Front: a flowing gradient of four colors (section 4). Back: a picture, shown mirrored so it reads the right way round when the card is turned.\n- No shadow, no reflection, no darkening as cards turn away: on a white page they only look dirty. Depth comes from size, blur and fade (section 6).\n- Pressing a card shrinks it to 0.95 in 140ms and back in 320ms, about its middle.\n\n4. The fluid gradient\n- Value noise in fBm, 3 octaves; after each octave turn the point by the matrix (0.8, -0.6; 0.6, 0.8), scale it by 2.02, add (1.7, 9.2), and halve the amplitude.\n- With p the point on the card in pixels from its middle: uv = p / w * 0.9 + seed (seed = i * 3.7 + 0.43, so every card differs).\n- The flow moves the field around a circle: o1 = rho * (cos(phi), sin(phi)), o2 = rho * (cos(phi + 2.1), sin(phi + 2.1)). phi grows with time so the field moves 0.2 noise cells a second (the Flow slider, 20%); rho is the circle's radius. Because the field comes back to where it began, a recording or a loop never jumps. In the demo one turn takes the length of the animation loop (17.07s).\n- Warp it twice: w1 = (fbm(uv + o1), fbm(uv + (5.2, 1.3) - o1)); w2 = (fbm(uv + 1.5 * w1 + (1.7, 9.2) + o2), fbm(uv + 1.5 * w1 + (8.3, 2.8) - o2)); f = fbm(uv * 0.9 + 1.7 * w2).\n- Color: mix(c0, c1, smoothstep(0.3, 0.7, f)), then toward c2 by smoothstep(0.42, 0.72, w2.x) * 0.9, then toward c3 by smoothstep(0.5, 0.8, w1.y) * 0.7; a soft light across the top (toward white by smoothstep(0.1, -0.6, y / h) * 0.12); film grain of ±1.75% that fades out under blur.\n- Palettes, four colors each, one per card, for example: Tangerine #ff7a3d #ff3d77 #ffc46b #7a2cff; Lagoon #00c2c7 #2f6bff #9ff3e0 #0b2a6f; Peony #ff8fb1 #ffd1dc #b84dff #ff5a5f; Citrus #ffe14d #7ee081 #ff9f1c #2ec4b6; Iris #6a5cff #b18cff #ff7ad9 #1b1464; Aurora #2af598 #009efd #b3ffab #12123a. Or derive them from my brand colors and show me.\n\n5. Inside: the glass rim\n- Draw the cards into a texture first, then lay it on screen in a second pass. Along each side of the frame is a band of glass, rim = 160px wide.\n- A pixel at distance d from its side (d < rim) shows the picture from further in: k = (1 - d / rim)^2.4, and the offset is 0.4 * rim * k across, toward the middle, along the line toward the eye point (so it also moves toward the eye's height). The cards' top and bottom edges flare out under the glass, and the flare grows smoothly from nothing at the band's inner side.\n- Keep 0.4 * 2.4 under 1: the band then squeezes the picture toward the edge but never folds it back on itself. A fold repeats a card, or a gap between cards, inside the glass.\n- Dispersion: take the offset at seven strengths, red bending furthest and blue least: for t = i / 6, i = 0..6, the offset times 1 + spread * (1 - 2t), with spread = 0.25 * k (the Dispersion slider, 25%). Weight each sample by w(t) = clamp((1.5 - 3t, 1 - 1.5 * |2t - 1|, 3t - 1.5), 0, 1) and divide by the summed weights, so the fringe runs smoothly through the colors.\n- A faint light along the glass: toward white by k^3 * 0.12.\n- The rim belongs to Inside only: it fades out as bend goes to 0, and a 0 rim switches it off.\n\n6. Outside: depth of field\n- Blur b, in screen pixels, is the larger of two: across the frame, blur * smoothstep(110, half the frame's width, |screen x|)^1.4, so the middle 220px stays sharp and the blur grows smoothly toward the sides; and with distance, blur * smoothstep(0.25, 0.8, back)^1.2, where back = -z / (2R) goes from 0 at the front card to 1 at the far side. Default blur 14px.\n- Work the blur out per pixel, never with a backdrop blur over moving content (it shimmers). For a card, take its coverage as a box blur in screen pixels, separately across and up: across = clamp((min(dl, b) + min(dr, b)) / (2b), 0, 1), where dl and dr are the screen distances to the card's left and right sides; the same for up and down; alpha = smoothstep(across) * smoothstep(down), capped by the corners softened by the same b. A card narrower than the blur never reaches full cover and fades, as a real blur would.\n- Draw each card with a margin of (the largest blur + 4) screen pixels around it, so a blurred edge always has room, however steeply the card is turned.\n- Blur the content too: fade out the noise octaves finer than the blur, and read the pictures from a smaller mipmap level, log2(max(1, b * texels per screen pixel)).\n- The far side fades toward the page: toward white by fade * smoothstep(0.3, 1, back). Default fade 50%.\n\n7. Turning over, and motion\n- Switching to Outside turns every card over about its upright middle, one after another from the front card out: for the whole run flip going 0 to 1 over 1800ms with cubic-bezier(0.3, 0, 0.6, 1), each card's lag = min(|s| / (6 * step), 1) and its turn = PI * smoothstep(0, 1, flip * 1.55 - lag * 0.55). The front half ends showing pictures and the far half its gradients. Switching back turns them back.\n- Drag: the row follows the pointer one pixel for one pixel. On release it glides on with the release speed (target = offset - velocity * 260ms), snaps to the nearest card, and takes clamp(|distance| * 1.6, 420, 1100) ms with cubic-bezier(0.25, 0.6, 0.2, 1). Pressing a card brings it to the front in 760ms.\n- A hard flick, fast then slow (used to open Inside): 16 cards in 2800ms with cubic-bezier(0.4, 0, 0.12, 1). It picks up speed in a moment rather than jumping to full speed, so a loop that begins with it has no jolt.\n- Any new motion stops the one before it. Reduced motion: no flow, an instant switch, slides of 200ms at most.\n\n8. The settings panel\n- One row per number: its name, a slider and its value with the unit. The rows change with the view. Moving a slider updates the picture at once and stops any demo animation. A reset puts every value back to its default.\n- Inside: Perspective 860px (600 to 1400), Glass rim 160px (0 to 240), Dispersion 25% (0 to 60), Flow 20% (0 to 60), Corner 32px (0 to 60).\n- Outside: Perspective 1500px (900 to 2400), Depth blur 14px (0 to 30), Far fade 50% (0 to 100), Flow 20%, Corner 32px.\n- Use my slider component if I have one; otherwise a plain range input with a filled track, an upright handle and a number box beside it.\n- Changing Flow adds to the flow's angle each frame instead of multiplying time, so the gradients never jump.\n\n9. How to build it, by platform\nThese are suggestions; check them against my stack and versions.\n- Web (as in the demo): WebGL 2, two passes. Each card is one strip of upright columns (96 across, plus one past each side for the margin) placed in the vertex shader; upright lines stay straight under the perspective, so a top and a bottom point per column are enough. The pictures go in one texture array with mipmaps. Draw the cards farthest first with premultiplied alpha into a texture, then the glass pass to the screen. Run one requestAnimationFrame loop; at 2x pixel density it holds 60 fps on a laptop.\n- iOS: Metal (MTKView) with the same two passes, or SwiftUI with a Metal [[stitchable]] layerEffect for the glass pass and visualEffect for the cards.\n- Android: OpenGL ES 3 or Vulkan; on API 33+ an AGSL RuntimeShader can draw the gradient and the glass pass in Compose.\n- Flutter: FragmentProgram shaders for the gradient and the glass pass, the cards in a CustomPainter with drawVertices.\n- If the platform has no GPU path: CSS 3D transforms can place the cards (preserve-3d, the same x, z and a), with CSS gradients standing in for the fluid; leave out the glass pass and use a few stepped blur layers per card instead of the per-pixel blur.\n\n10. Check\n- Inside: the outer cards flare smoothly in the glass with a soft color fringe, no fold, no repeated card; five cards in view.\n- Outside: reads as a ring at eye level; the middle is sharp, the blur grows smoothly to the sides and the far side, with no shimmer while the ring turns and no hard edge on a steeply turned card.\n- The turn-over runs from the middle out; the pictures read the right way round; the far side shows gradients.\n- Every slider changes the picture at once, the values match section 8, and reset restores them.\n- 60 fps on a mid-range phone; reduced motion, light and dark pages, and keyboard use of the panel all checked.","skill":"/skills/kubai-ring-cards/SKILL.md","skillText":"# 景深环形卡片与流体渐变\n\n《999 个小技巧，让你 Vibe 的产品更有质感》第 021 期 · @kubai087\n\n在用户的项目里按下面的要求改造。要求以用户的口吻写成：文中的 I、me、my 指用户；写着要先问的地方，先停下来问用户再继续。\n\n## 改造要求\n\nBuild a ring of cards in my project, in two views. Inside: the viewer stands in the middle of the ring, the cards near the edges come closer and grow, and they pass under a rim of glass at each side of the frame that bends them and splits their colors. Outside: the ring is seen at eye level from outside, the front card is in focus, the sides and the far side soften with distance, and switching to it turns the cards over, one after another, from flowing gradients to pictures. Every card's gradient flows slowly. A settings panel shows the key numbers as sliders, set to the defaults below, so they can be tuned live.\n\nEvery value here comes from a working demo and is the default, not a requirement. Build it with these values first, then let me tune them with the panel (section 8).\n\nBefore building, look at my project (section 0) and ask me these, one at a time, with the recommended answer marked:\n1. Where it goes: its own page or section (recommended), or a component I name.\n2. What the cards hold: flowing gradients on the front and my pictures on the back (recommended; tell me where the pictures come from), gradients only, or pictures only (then skip the turn-over and show the pictures in both views).\n3. The view it opens in: Inside (recommended) or Outside, and whether people can switch (a two-option segmented control, recommended).\n4. The settings panel: shown to everyone, shown only in development, or hidden behind a toggle.\nThen sum up my answers, say how you will build it on my platform (section 9), and wait for my go-ahead.\n\n0. Start from what exists\n- Find how the project draws (DOM, canvas or WebGL, a native view tree, a GPU renderer), its framework and versions, where the pictures live, its slider or form components, and whether it has a dark mode and a reduced-motion setting.\n- Tell me in a few lines what you found before asking.\n\n1. The ring\n- N cards of w x h, a gap between them, one step = w + gap apart along an arc. Default: N = 22, 180 x 300, gap 18, so step 198 and radius R = N * step / (2 * PI) ≈ 693. The ring's circumference is exactly the row, so it closes on itself.\n- Each card i sits at s = wrap(i * step - offset) along the arc, wrapped into [-N * step / 2, N * step / 2). offset is how far the row has moved; the front card is round(offset / step) mod N.\n- One signed curvature c = bend / R places every card: for c = 0, x = s, z = 0, a = 0; otherwise a = s * c, x = sin(a) / c, z = (1 - cos(a)) / c. x runs across, z toward the viewer, and the card turns by a about its upright middle. bend = 1 is Inside (the ring curves toward the viewer), bend = -1 is Outside.\n- Switching views eases bend from one to the other over 1100ms with cubic-bezier(0.65, 0, 0.35, 1), so the row visibly bends from one ring into the other.\n\n2. The camera\n- Perspective P is the eye's distance from the front card: P = mix(pIn, pOut, (1 - bend) / 2), so it moves with the switch. Defaults: pIn 860 (a little behind the ring's center, so the row curves without pulling the side cards too far; at P = R the eye is exactly at the center), pOut 1500 (well back, so the ring turns away gently).\n- The eye looks straight on, at the cards' middle height. A point (x, y, z) lands on screen at x * P / (P - z), y * P / (P - z), from the frame's center.\n- Leave out a card when any part of it is less than 140 units in front of the eye, or when it is wholly off the frame.\n- Inside, the 22-card ring at pIn 860 shows five cards: three whole, the outer two going into the glass. Outside it shows the whole ring, the far side between and beyond the near cards.\n\n3. The card face\n- Corners: a continuous curve, a superellipse of exponent 4 over a 32px radius, the same curve as CSS corner-shape: superellipse(2). In a shader, the distance to the outline is: d = abs(p) - (w, h) / 2 + r; m = max(d, 0); dist = (m.x^4 + m.y^4)^(1/4) + min(max(d.x, d.y), 0) - r.\n- Front: a flowing gradient of four colors (section 4). Back: a picture, shown mirrored so it reads the right way round when the card is turned.\n- No shadow, no reflection, no darkening as cards turn away: on a white page they only look dirty. Depth comes from size, blur and fade (section 6).\n- Pressing a card shrinks it to 0.95 in 140ms and back in 320ms, about its middle.\n\n4. The fluid gradient\n- Value noise in fBm, 3 octaves; after each octave turn the point by the matrix (0.8, -0.6; 0.6, 0.8), scale it by 2.02, add (1.7, 9.2), and halve the amplitude.\n- With p the point on the card in pixels from its middle: uv = p / w * 0.9 + seed (seed = i * 3.7 + 0.43, so every card differs).\n- The flow moves the field around a circle: o1 = rho * (cos(phi), sin(phi)), o2 = rho * (cos(phi + 2.1), sin(phi + 2.1)). phi grows with time so the field moves 0.2 noise cells a second (the Flow slider, 20%); rho is the circle's radius. Because the field comes back to where it began, a recording or a loop never jumps. In the demo one turn takes the length of the animation loop (17.07s).\n- Warp it twice: w1 = (fbm(uv + o1), fbm(uv + (5.2, 1.3) - o1)); w2 = (fbm(uv + 1.5 * w1 + (1.7, 9.2) + o2), fbm(uv + 1.5 * w1 + (8.3, 2.8) - o2)); f = fbm(uv * 0.9 + 1.7 * w2).\n- Color: mix(c0, c1, smoothstep(0.3, 0.7, f)), then toward c2 by smoothstep(0.42, 0.72, w2.x) * 0.9, then toward c3 by smoothstep(0.5, 0.8, w1.y) * 0.7; a soft light across the top (toward white by smoothstep(0.1, -0.6, y / h) * 0.12); film grain of ±1.75% that fades out under blur.\n- Palettes, four colors each, one per card, for example: Tangerine #ff7a3d #ff3d77 #ffc46b #7a2cff; Lagoon #00c2c7 #2f6bff #9ff3e0 #0b2a6f; Peony #ff8fb1 #ffd1dc #b84dff #ff5a5f; Citrus #ffe14d #7ee081 #ff9f1c #2ec4b6; Iris #6a5cff #b18cff #ff7ad9 #1b1464; Aurora #2af598 #009efd #b3ffab #12123a. Or derive them from my brand colors and show me.\n\n5. Inside: the glass rim\n- Draw the cards into a texture first, then lay it on screen in a second pass. Along each side of the frame is a band of glass, rim = 160px wide.\n- A pixel at distance d from its side (d < rim) shows the picture from further in: k = (1 - d / rim)^2.4, and the offset is 0.4 * rim * k across, toward the middle, along the line toward the eye point (so it also moves toward the eye's height). The cards' top and bottom edges flare out under the glass, and the flare grows smoothly from nothing at the band's inner side.\n- Keep 0.4 * 2.4 under 1: the band then squeezes the picture toward the edge but never folds it back on itself. A fold repeats a card, or a gap between cards, inside the glass.\n- Dispersion: take the offset at seven strengths, red bending furthest and blue least: for t = i / 6, i = 0..6, the offset times 1 + spread * (1 - 2t), with spread = 0.25 * k (the Dispersion slider, 25%). Weight each sample by w(t) = clamp((1.5 - 3t, 1 - 1.5 * |2t - 1|, 3t - 1.5), 0, 1) and divide by the summed weights, so the fringe runs smoothly through the colors.\n- A faint light along the glass: toward white by k^3 * 0.12.\n- The rim belongs to Inside only: it fades out as bend goes to 0, and a 0 rim switches it off.\n\n6. Outside: depth of field\n- Blur b, in screen pixels, is the larger of two: across the frame, blur * smoothstep(110, half the frame's width, |screen x|)^1.4, so the middle 220px stays sharp and the blur grows smoothly toward the sides; and with distance, blur * smoothstep(0.25, 0.8, back)^1.2, where back = -z / (2R) goes from 0 at the front card to 1 at the far side. Default blur 14px.\n- Work the blur out per pixel, never with a backdrop blur over moving content (it shimmers). For a card, take its coverage as a box blur in screen pixels, separately across and up: across = clamp((min(dl, b) + min(dr, b)) / (2b), 0, 1), where dl and dr are the screen distances to the card's left and right sides; the same for up and down; alpha = smoothstep(across) * smoothstep(down), capped by the corners softened by the same b. A card narrower than the blur never reaches full cover and fades, as a real blur would.\n- Draw each card with a margin of (the largest blur + 4) screen pixels around it, so a blurred edge always has room, however steeply the card is turned.\n- Blur the content too: fade out the noise octaves finer than the blur, and read the pictures from a smaller mipmap level, log2(max(1, b * texels per screen pixel)).\n- The far side fades toward the page: toward white by fade * smoothstep(0.3, 1, back). Default fade 50%.\n\n7. Turning over, and motion\n- Switching to Outside turns every card over about its upright middle, one after another from the front card out: for the whole run flip going 0 to 1 over 1800ms with cubic-bezier(0.3, 0, 0.6, 1), each card's lag = min(|s| / (6 * step), 1) and its turn = PI * smoothstep(0, 1, flip * 1.55 - lag * 0.55). The front half ends showing pictures and the far half its gradients. Switching back turns them back.\n- Drag: the row follows the pointer one pixel for one pixel. On release it glides on with the release speed (target = offset - velocity * 260ms), snaps to the nearest card, and takes clamp(|distance| * 1.6, 420, 1100) ms with cubic-bezier(0.25, 0.6, 0.2, 1). Pressing a card brings it to the front in 760ms.\n- A hard flick, fast then slow (used to open Inside): 16 cards in 2800ms with cubic-bezier(0.4, 0, 0.12, 1). It picks up speed in a moment rather than jumping to full speed, so a loop that begins with it has no jolt.\n- Any new motion stops the one before it. Reduced motion: no flow, an instant switch, slides of 200ms at most.\n\n8. The settings panel\n- One row per number: its name, a slider and its value with the unit. The rows change with the view. Moving a slider updates the picture at once and stops any demo animation. A reset puts every value back to its default.\n- Inside: Perspective 860px (600 to 1400), Glass rim 160px (0 to 240), Dispersion 25% (0 to 60), Flow 20% (0 to 60), Corner 32px (0 to 60).\n- Outside: Perspective 1500px (900 to 2400), Depth blur 14px (0 to 30), Far fade 50% (0 to 100), Flow 20%, Corner 32px.\n- Use my slider component if I have one; otherwise a plain range input with a filled track, an upright handle and a number box beside it.\n- Changing Flow adds to the flow's angle each frame instead of multiplying time, so the gradients never jump.\n\n9. How to build it, by platform\nThese are suggestions; check them against my stack and versions.\n- Web (as in the demo): WebGL 2, two passes. Each card is one strip of upright columns (96 across, plus one past each side for the margin) placed in the vertex shader; upright lines stay straight under the perspective, so a top and a bottom point per column are enough. The pictures go in one texture array with mipmaps. Draw the cards farthest first with premultiplied alpha into a texture, then the glass pass to the screen. Run one requestAnimationFrame loop; at 2x pixel density it holds 60 fps on a laptop.\n- iOS: Metal (MTKView) with the same two passes, or SwiftUI with a Metal [[stitchable]] layerEffect for the glass pass and visualEffect for the cards.\n- Android: OpenGL ES 3 or Vulkan; on API 33+ an AGSL RuntimeShader can draw the gradient and the glass pass in Compose.\n- Flutter: FragmentProgram shaders for the gradient and the glass pass, the cards in a CustomPainter with drawVertices.\n- If the platform has no GPU path: CSS 3D transforms can place the cards (preserve-3d, the same x, z and a), with CSS gradients standing in for the fluid; leave out the glass pass and use a few stepped blur layers per card instead of the per-pixel blur.\n\n10. Check\n- Inside: the outer cards flare smoothly in the glass with a soft color fringe, no fold, no repeated card; five cards in view.\n- Outside: reads as a ring at eye level; the middle is sharp, the blur grows smoothly to the sides and the far side, with no shimmer while the ring turns and no hard edge on a steeply turned card.\n- The turn-over runs from the middle out; the pictures read the right way round; the far side shows gradients.\n- Every slider changes the picture at once, the values match section 8, and reset restores them.\n- 60 fps on a mid-range phone; reduced motion, light and dark pages, and keyboard use of the panel all checked.\n"}