AI 生成页面转场动效: Six Copy-Paste Prompt Patterns
A field guide to 'AI 生成页面转场动效' built from a public prompt set. Six named transitions with exact durations, easing and stagger values, a comparison table, a prompt-writing method, and a checklist for motion that survives a real device. Every pattern includes the failure mode to avoid, which is the part a generic prompt leaves out.
View 3 referencesAllow the functional cookie to save your likes. Privacy details
What does "AI 生成页面转场动效" mean?
AI 生成页面转场动效 means asking a model to write the code for a transition between two screens or routes. The request is about motion choreography: which element leaves, which arrives, how long each step takes and what easing curve carries it.
Why do generic prompts produce a plain fade?
Because "make a page transition" gives a model no geometry to work with. A published prompt collection from the linyi-ui motion skill makes this explicit: each of its six prompts is paired with a "common wording" example showing that a vague request usually returns a crossfade. Specific numbers are what turn a fade into a designed transition.
The six page-transition prompts are public and copyable, and the parameters quoted below come from that source.
What are the six patterns?
The six patterns are Card Morph, Sheet to Screen, Back Parallax, Grid to Tabs, Icon Flight and Bar to Panel. They cover the transitions most app screens actually need: opening a detail view, expanding a sheet, going back, collapsing a grid to a tab bar, sharing an element, and expanding a bottom bar.
| Pattern | Core motion | Timing in the source |
|---|---|---|
| Card Morph | A card grows into a full-page header | 0.72 s open, 0.68 s close |
| Sheet to Screen | A bottom sheet grows to full height | 0.67 s open, 0.65 s close |
| Back Parallax | Current page slides out, lower page drifts back | 0.8 s |
| Grid to Tabs | Icons fly into a sticky tab bar | 0.8 s, 0.035 s stagger |
| Icon Flight | A plus icon travels to a new page title | 0.7 s |
| Bar to Panel | A bottom bar expands into a menu panel | 0.7 s |
How does a card-to-page morph work?
The card grows from its grid position into the page header while its inner padding and font size transition at the same time. The source is explicit that scaling the whole card alone is wrong, and that closing must replay the same easing in reverse without a frame jump.
A card in a 2x3 wallet grid expands into a full page: height 104 to 296, corner radius 18 to 0, width 174 to 390, over 0.72 s with ease-out. Its inner labels cross-fade into the large header. Six setting rows fade in from 24 px below with a 0.06 s stagger. Close replays the same easing in reverse over 0.68 s.
How do sheet, parallax and bar transitions differ?
Sheet to Screen grows a 300 px sheet to 844 px as content cross-fades halfway. Back Parallax slides the current page 390 px right while the layer below returns from -78 px at one fifth the speed. Bar to Panel grows an 80 px bar to 544 px and keeps tab icons pinned at the bottom.
Each pattern has one invariant that is easy to lose in generation: the sheet must not flash back to its first content layer on close, the two parallax layers must not move at the same speed, and the tab icons must not be pushed upward as the panel grows. State that invariant in the prompt.
How do you write your own transition prompt?
Describe geometry, duration, easing, stagger and one failure to avoid. The original set always includes the "common wording" contrast: write what a lazy prompt would produce, then write the precise version beside it. A precise brief is what separates a designed transition from a default crossfade.
State the failure mode that must not happen, then paste the whole description into your coding agent in one message.
- Name the two screens and the shared element, if any.
- Give start and end values: size, position, radius, opacity.
- Give a duration in seconds and an easing curve.
- Give the stagger interval for lists of items.
- State the failure mode that must not happen.
What should you verify on a device?
Motion that looks fine in a code preview can stutter on a phone. Check for layout jumps when the new page mounts, confirm that the animation reverses correctly on back navigation, and test with system animation reduced. A transition that blocks the interface for more than a second feels broken even if it is technically correct.
FAQ: common questions about AI 生成页面转场动效
Can these prompts be pasted into any coding agent?
Yes. The source says the prompts are intended for tools such as Claude Code, Codex and Cursor, with no plugin required. You paste the description and the agent writes the code. The output still needs review, because timing values are easy to drop when a model paraphrases.
Should I use a shared-element transition for every navigation?
No. Shared-element motion needs the same recognisable object at both ends, such as a thumbnail becoming a detail image. For a plain list-to-settings navigation, a short fade is clearer and faster. The companion motion dictionary makes the same point: ordinary content sites do not need elaborate transitions on every click.
What is the right duration?
The published patterns sit between 0.65 and 0.8 seconds for the main move, with 0.03 to 0.08 second staggers for secondary items. Those are useful defaults, not laws. If the transition delays a task, shorten it.
Bottom line and limits
The incremental value here is the parameter set: named patterns with durations, easing and stagger values that a generic prompt will not invent. This guide is based on a public prompt file and a published motion dictionary as of December 2026; libraries and platform motion guidelines change, so re-check the current recommendations before a large refactor.