Motion Prompt #147|堆叠卡片 · Stacking cards
滚动时卡片层层叠起
部分附加信息、来源说明或示例仍显示原文。
来源:import:liubai_public_20261104 · https://github.com/Shanvision-star/liubai-prompt-library/blob/25f0137e36a8fae46aebace86b18cdfeff624a99/bundled-library/entries/PRM-0389/original.md · 授权:MIT License Copyright (c) 2026 Shohei Ohtaki Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
使用示例提示词正文
请使用“Stacking cards”(スタッキングカード),它是“Landing page & web effects, part 2”中的一个名称。 Motion Prompt #147 定义:卡片随滚动相互叠放。 示例展示:滚动时下一张卡片从下方升起,以小偏移叠在前一张上面;下方卡片略微缩小并变暗。 规格: - 视口511×168。滚动步进s在0.3–1.1 s由0→1,1.6–2.4 s由1→2,3.2–4.4 s由2→0,使用三次ease-in-out。单次4.7 s,在9.4 s包循环内播放两次。 - 三张卡片371×124、圆角半径12、居中,在页面中彼此间隔170 px;s每增加1,卡片向上移动170 px。 - 卡片分别在距顶部14、26、38 px处停住,相当于position: sticky且每张top偏移增加12 px,因此新卡覆盖前卡。 - 每多叠一张,上层下面的卡片绕自身上边缘中点缩小4.5%,叠两张则缩小9%;同时覆盖深蓝层变暗,最高16%。 - 卡片阴影模糊14 px,向上偏移2 px;滚动条滑块跟随滚动。 何时使用:用于需要按顺序一次展示一张的步骤、功能或套餐。 参考实现(Canvas 2D,画面仅由时间决定的函数):https://showheyohtaki.github.io/motion-prompt/api/v1/en/e/147.txt 共享辅助代码:https://showheyohtaki.github.io/motion-prompt/api/v1/kit/lp2.js 请保持参考实现的形状、时间安排和缓动数值不变,只调整文字、颜色和素材,以适配我正在制作的项目。
使用示例
示例输入
请实现“堆叠卡片 · Stacking cards”:滚动时卡片层层叠起
示意结果
下方是来源作者提供的静态画面和可播放动效参考,并非本站对该提示词调用模型生成的结果。
提示词仅供参考,请结合实际场景调整,并核实 AI 生成结果。