返回提示词

Motion Prompt #055|气泡卡片 · Popover

点击后显示指向触发按钮的小面板

发布于 更新于 浏览 0

部分附加信息、来源说明或示例仍显示原文。

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

使用示例

提示词正文

请使用“Popover”(ポップオーバー),它是“UI component names”中的一个名称。
Motion Prompt #055

定义:点击按钮,打开一个尖角指向它的小面板
示例展示:点击“详情”后,按钮右侧出现白色小面板,尖角指向按钮;点击内部“确定”关闭。
规格:
- 卡片为542×191,循环4.5 s。蓝色描边“详情”按钮108×36,位于(24,112);光标1.0 s点击。
- 显示量a在1.0–1.28 s内按easeOutCubic从0→1;不透明度为a,从右侧相距6 px处滑入。
- 白色面板300×120、圆角半径10,位于(156,62);边框1 px,阴影模糊22、y偏移6。左侧边缘y=122–138处有宽10的三角指向按钮。
- 内部包含粗标题条、两行正文、70×26描边按钮及72×26蓝色确定按钮。
- 关闭:光标3.0 s前移到确定按钮(402,157),3.3 s点击;a乘以(1 − 在3.3–3.5 s运行的easeInOutCubic)。
何时使用:展示紧邻触发按钮的简短设置或确认事项时使用。

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

使用示例

示例输入

请实现“气泡卡片 · Popover”:点击后显示指向触发按钮的小面板

示意结果

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

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