返回提示词

Motion Prompt #164|倒计时 · Countdown timer

显示距截止时间的剩余时间并递减

发布于 更新于 浏览 0

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

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

使用示例

提示词正文

请使用“Countdown timer”(カウントダウンタイマー),它是“Landing page & web effects, part 2”中的一个名称。
Motion Prompt #164

定义:倒数显示距离截止时间的剩余时间。
示例展示:“キャンペーン終了まで”(活动结束倒计时)下方的时、分、秒每秒减少;只有发生变化的数字向上滚出,新数字从下方进入。
规格:
- 视口511×168,橙色渐变横带显示活动结束倒计时标题,以及时、分、秒六个数字格;各格34×50、圆角半径6、数字32 px。只有本卡每9.4 s播放一次,即整个包周期。
- 从02:15:04开始,从0.4 s起每1 s减一秒,共九次,结束为02:14:55;4.4 s时02:15:00→02:14:59,分钟发生借位。
- 只对数字变化的格子执行动画:0.32 s内以三次ease-in-out让旧数字向上移出、新数字从下方移入,并裁切在格子内。
- 9.4 s时以直接切换回到02:15:04。
何时使用:用于限时优惠或申请截止前,清楚显示剩余时间。

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

使用示例

示例输入

请实现“倒计时 · Countdown timer”:显示距截止时间的剩余时间并递减

示意结果

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

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