✨ 五种经典的卡片滚动交互——《999 个小技巧,让你 Vibe 的产品更有质感》019 今天分享五种效果出众的卡片滚动交互,适用于产品官网和个人作品集。 另附一条 Prompt,可将你产品中已有的长页面改造成同类滚动效果,直接复制即可 ⬇️ 这类交互的特别之处在于:用户滚动页面时,预期看到的是元素的纵向位移;而这些效果把滚动转化为横向、旋转甚至不规则的运动,因此给人耳目一新的感觉。 Apple 是这方面的高手,其官网常配合序列帧,实现许多令人印象深刻的效果。 这几类效果的细节如下: 1. 层叠卡片(Stacked cards):卡片随滚动逐层叠加,下层卡片依次变暗、缩小,顶部各保留一小段露出,以体现前后层次。 2. 卡组飞出(Card deck):顶部卡片沿弧线向左右两侧依次飞出,轨迹模拟真实的抛物线。 3. 横向展廊(Pinned Gallery):页面暂时固定,纵向滚动转化为横向移动,呈现与滚动方向完全不同的运动。 4. 封面轮播(Cover flow):经典的 3D 封面轮播,每张封面依次移到中间,两侧封面略微倾斜,收拢视线,使焦点更加集中。 5. 图片展开(Image Expand):小图随滚动铺满屏幕;标题与背景前后遮挡,再加上移动速度的差异,形成景深。 此外,这五种效果都由滚动位置直接驱动:停在一半,效果就停在一半;往回滚动,效果随之倒放。
枯白啃设计

图标设计师 / 设计工程师

Prompt(1/3) Prompt Rework a long page that already exists in my product so its cards move with scrolling. This changes my product, not a new page or a demo: keep my content, components, tokens and copy, find the sections that deserve it, and give each one of five scroll-driven card interactions: stacked cards (each new card covers the last, which shrinks and dims), a card deck (the top card flies off to one side and the next rises), a pinned gallery (the section holds still while scrolling moves a row sideways), a cover flow (the middle cover is largest; the others shrink, turn away and dim), or an image expand (a picture grows from a frame to the whole screen, with words behind and in front of it rising at different speeds for depth). The scroll position drives every effect, so the reader sets the pace and scrolling back plays it in reverse. It must hold up on every screen, phones above all, and at every viewport height (section 8). Every value here is a recommendation. Sections 2 to 8 are a tested set (Standard); section 10 gives presets. I choose; you build what I choose. First look at my product (section 0). Then ask me these one at a time, each as a short list of options with key values and the recommended one marked, and wait for my answer: 1. Which sections get which interaction (section 1): at most one of each per page, with ordinary sections between them. 2. Length: Short, Standard (recommended) or Long (section 10). 3. Phones and short screens: Standard (recommended: on phones the stack, deck and image expand stay, sized to the viewport; the gallery and cover flow become native horizontal rows with snap points; below 560px of viewport height nothing pins), the same as desktop, or plain sections on all phones. Tell me which screen sizes my analytics or audience suggest, if you can find out. 4. Reduced motion: plain sections (recommended: lists, horizontal rows, a full-width picture), or keep the pinning and drop the motion. 5. Engine: CSS scroll-driven animations with a small script as fallback (recommended), or the scroll library my project already uses. Never smooth-scrolling or scroll-hijacking. Then sum up my choices in one table, propose how you will build it on my platform (section 9), with cost and fallback, and wait for my go-ahead. 0. Start from what exists - The page: its sections in order, their content, cards, images and videos, and anything fixed or sticky (header, banner, cookie bar) with its height per breakpoint. - For each section, which interaction fits and which sections must stay as they are (anything people scan, compare or search). - How the layout responds today: breakpoints, how it sizes to the viewport (vh, svh, dvh, JS reading innerHeight), what already breaks on short screens. - How the page scrolls: window or inner container, smooth-scroll libraries, anchor links, existing scroll effects. - Platform and versions, tokens for radius and motion, dark mode. Tell me in a few lines before asking. 1. Which interaction for which content - Stacked cards: 3 to 5 parallel items worth a screen each (steps, features, plans, chapters). - Card deck: 3 to 6 items seen one at a time (picks, testimonials, highlights). - Pinned gallery: 5 to 12 items wider than the screen, to browse (work, products, releases). - Cover flow: 5 to 9 items of the same shape, one in focus (albums, books, plans, people). - Image expand: one strong picture or video that opens the next chapter. 2. The rule behind all five - Each section has one progress p = clamp((scrollY - start) / distance, 0, 1), and every property is a function of p, never a timed animation that scroll merely starts. Stopping halfway leaves it halfway; scrolling back reverses it exactly. Never change scroll speed, snap or catch the wheel. - Pinning is position: sticky inside a section taller than the screen; the extra height is the distance the effect plays over. - Animate only transform, opacity, clip-path and filter. Text stays in the page and readable at every p. - When a section is pinned, show where the reader is as quietly as possible: a thin bar or dots, never a label.
登录并发表评论

评论 · 0