返回提示词

Motion Prompt #052|折叠面板 · Accordion(中文译文)

点击标题展开或收起内容;中文译文,效果未实测。

发布于 更新于 浏览 0

来源:import:liubai_versions_20261104 · https://github.com/Shanvision-star/liubai-prompt-library/blob/25f0137e36a8fae46aebace86b18cdfeff624a99/bundled-library/entries/PRM-0294/translation-zh.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:

使用示例

提示词正文

请使用“Accordion”(アコーディオン),它是“UI component names”中的一个名称。
Motion Prompt #052

定义:点击标题以显示或隐藏其内容
示例展示:点击三个标题中的第一个后,其内容展开并将下方各行推下;再次点击关闭。
规格:
- 卡片为542×191,循环4.5 s。三个标题宽494、高34、圆角半径8、间隔6,右侧有向下箭头。
- 光标0.95 s到达第一个标题,在1.0 s和3.3 s点击。
- 展开量ex在1.0–1.35 s内按easeInOutCubic从0→1,随后在3.3–3.62 s内从1→0。
- 第一行高度从34增至92(增加58·ex),将下面各行推下;其两行正文裁切在行内,并以不透明度ex淡入。
- 展开时箭头旋转180°·ex,边框变浅蓝、标题变蓝。
何时使用:适合FAQ或长详情,让用户浏览标题后只展开需要的内容。

参考实现(Canvas 2D,画面仅由时间决定的函数):https://showheyohtaki.github.io/motion-prompt/api/v1/en/e/052.txt
共享辅助代码:https://showheyohtaki.github.io/motion-prompt/api/v1/kit/ui.js
请保持参考实现的形状、时间安排和缓动数值不变,只调整文字、颜色和素材,以适配我正在制作的项目。

使用示例

示例输入

请实现“折叠面板 · Accordion”:点击标题展开或收起内容;中文译文,效果未实测。

示意结果

下方是来源作者提供的静态画面和可播放动效参考,并非本站对该提示词调用模型生成的结果。

提示词仅供参考,请结合实际场景调整,并核实 AI 生成结果。