Motion Prompt #053|下拉选择框 · Dropdown (select)(中文译文)
点击字段展开选项列表;中文译文,效果未实测。
来源:import:liubai_versions_20261104 · https://github.com/Shanvision-star/liubai-prompt-library/blob/25f0137e36a8fae46aebace86b18cdfeff624a99/bundled-library/entries/PRM-0295/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:
使用示例提示词正文
请使用“Dropdown (select)”(ドロップダウン),它是“UI component names”中的一个名称。 Motion Prompt #053 定义:点击字段,在它下方展开选项列表 示例展示:点击字段后,下方展开四个选项;选中“名古屋”后关闭列表并回填字段。 规格: - 卡片为542×191,循环4.5 s。260×38、圆角半径8的字段显示占位文字和箭头,光标1.0 s点击。 - 展开量在1.0–1.25 s内按easeOutCubic从0→1。白色260×112列表带模糊18的阴影,淡入同时下移6 px。箭头旋转180°,字段边框变为蓝色2 px。 - 四个选项间隔26 px(日文东京、大阪、名古屋、福冈)。光标下移时,大阪从1.55 s起浅蓝高亮,名古屋从1.95 s起高亮。 - 2.3 s点击名古屋:列表在2.3–2.45 s内按(1 − easeInOutCubic)关闭;占位文字在2.2–2.3 s淡出,“名古屋”在2.32–2.42 s淡入。 - 重置:名古屋在3.9–4.08 s淡出,占位文字随后在4.1–4.3 s返回,两段文字始终不重叠。 何时使用:表单中需要从固定列表选择一个值时使用。 参考实现(Canvas 2D,画面仅由时间决定的函数):https://showheyohtaki.github.io/motion-prompt/api/v1/en/e/053.txt 共享辅助代码:https://showheyohtaki.github.io/motion-prompt/api/v1/kit/ui.js 请保持参考实现的形状、时间安排和缓动数值不变,只调整文字、颜色和素材,以适配我正在制作的项目。
使用示例
示例输入
请实现“下拉选择框 · Dropdown (select)”:点击字段展开选项列表;中文译文,效果未实测。
示意结果
下方是来源作者提供的静态画面和可播放动效参考,并非本站对该提示词调用模型生成的结果。
提示词仅供参考,请结合实际场景调整,并核实 AI 生成结果。