Motion Prompt #063|步进器 · Stepper (+/−)
通过加减按钮逐次修改数值
部分附加信息、来源说明或示例仍显示原文。
来源:import:liubai_public_20261104 · https://github.com/Shanvision-star/liubai-prompt-library/blob/25f0137e36a8fae46aebace86b18cdfeff624a99/bundled-library/entries/PRM-0305/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:
使用示例提示词正文
请使用“Stepper (+/−)”(ステッパー),它是“UI component names”中的一个名称。 Motion Prompt #063 定义:用加号和减号按钮,每次将数字增减1 示例展示:按三次加号将数字从1增加到4,再按三次减号回到1;每次按下数字都轻微放大后复位。 规格: - 卡片为542×191,循环4.5 s。200×60、圆角半径12的框位于(171,52):左侧60 px为减号,右侧60 px为蓝色加号,中间是粗体30 px数字。 - 点击:0.9、1.35、1.8 s按加号(1→4),2.8、3.25、3.7 s按减号(4→1)。 - 从每次点击前0.05 s到点击后0.15 s,被按下的区域染成浅蓝色。 - 数字:每次按下后缩放在0.25 s内线性从1.18回到1,期间数字变蓝。 何时使用:用于逐个增减的小整数,例如数量或来宾人数。 参考实现(Canvas 2D,画面仅由时间决定的函数):https://showheyohtaki.github.io/motion-prompt/api/v1/en/e/063.txt 共享辅助代码:https://showheyohtaki.github.io/motion-prompt/api/v1/kit/ui.js 请保持参考实现的形状、时间安排和缓动数值不变,只调整文字、颜色和素材,以适配我正在制作的项目。
使用示例
示例输入
请实现“步进器 · Stepper (+/−)”:通过加减按钮逐次修改数值
示意结果
下方是来源作者提供的静态画面和可播放动效参考,并非本站对该提示词调用模型生成的结果。
提示词仅供参考,请结合实际场景调整,并核实 AI 生成结果。