返回提示词

Motion Prompt #166|点赞动画 · Like button animation(中文译文)

点击后爱心迸发弹出;中文译文,效果未实测。

发布于 更新于 浏览 0

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

使用示例

提示词正文

请使用“Like button animation”(いいねアニメーション),它是“Landing page & web effects, part 2”中的一个名称。
Motion Prompt #166

定义:点赞时心形弹起并伴随爆发效果。
示例展示:点击心形后,它弹性放大并填红,周围粒子散开,旁边计数加一;再次点击撤销。
规格:
- 视口511×168,帖子卡包含线宽2.4的空心心形与右侧计数128;0.9 s点击,3.3 s再次点击撤销。单次4.7 s,在9.4 s包循环内播放两次。
- 点击前0.1 s压缩到0.78×;点击时填红#F23D5C,在0.12 s内以三次ease-out从0.78增至1.45×,随后按1 + 0.45·e^(−7t)·cos(15t)回稳至1×。
- 点击后0.08–0.58 s出现红环,半径15→33、不透明度0.5→0;六个方向各有一小粒子,颜色红、黄、橙,从半径24飞到37并淡出。
- 计数在点击后0.05–0.35 s内以三次ease-out更新:128向上滚出、红色129从下方进入;撤销时向下滚回128。
- 撤销:心形恢复描边,并在点击前后0.4 s内缩到0.84×后恢复,无粒子。
何时使用:用于点赞、收藏或保存按钮,清晰且愉快地确认点击。

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

使用示例

示例输入

请实现“点赞动画 · Like button animation”:点击后爱心迸发弹出;中文译文,效果未实测。

示意结果

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

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