返回提示词

Motion Prompt #054|文字提示 · Tooltip

悬停时显示简短说明

发布于 更新于 浏览 0

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

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

使用示例

提示词正文

请使用“Tooltip”(ツールチップ),它是“UI component names”中的一个名称。
Motion Prompt #054

定义:悬停在某个元素上,显示简短标签
示例展示:光标悬停在问号图标上,其上方深色气泡显示简短说明;移开后说明消失。
规格:
- 卡片为542×191,循环4.5 s。标签旁的问号图标位于(196,121),为半径13的蓝色圆环。
- 光标只悬停、不点击:1.05 s到达问号,停到3.15 s,并在4.1 s前离开卡片。
- 显示量a在1.15–1.35 s内按easeOutCubic从0→1;不透明度为a,同时向上移动6 px到位。
- 气泡颜色#26282c,大小184×36,圆角半径8,顶部y=64;底部有宽16、高8的三角指向图标,文字为白色15 px。
- 隐藏:3.25–3.45 s内线性从1→0。
何时使用:给图标或缩略语补充一行说明,而不占用页面常驻空间。

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

使用示例

示例输入

请实现“文字提示 · Tooltip”:悬停时显示简短说明

示意结果

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

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