返回提示词

Motion Prompt #071|徽标 · Badge(中文译文)

用小圆点或数字显示数量;中文译文,效果未实测。

发布于 更新于 浏览 0

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

使用示例

提示词正文

请使用“Badge”(バッジ),它是“UI component names”中的一个名称。
Motion Prompt #071

定义:用带数字的小圆点显示计数
示例展示:每次通知到达,页头铃铛上的蓝色圆点数字依次变为1、2、3;点击铃铛清除。
规格:
- 卡片为542×191,循环4.5 s。页头高54,右侧(482,27)为线描铃铛。
- 徽标为铃铛右上角(+12,−12)处半径12的蓝圆,白边2.5 px,数字白色14 px。
- 通知在0.7、1.3、1.9 s到达,数字1→2→3;首次在0.7–0.9 s按easeOutCubic缩放入场。
- 每次到达,缩放用0.3 s从1.3回到1,同时用0.5 s放出涟漪环,半径12→28,不透明度0.5→0。
- 光标2.95 s到达铃铛,3.0 s点击;徽标3.0–3.25 s按easeInOutCubic缩小到0。
何时使用:强调未读消息、购物车商品等计数。

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

使用示例

示例输入

请实现“徽标 · Badge”:用小圆点或数字显示数量;中文译文,效果未实测。

示意结果

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

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