Motion Prompt #162|灯箱 · Lightbox(中文译文)
点击图片后在变暗的背景上放大;中文译文,效果未实测。
来源:import:liubai_versions_20261104 · https://github.com/Shanvision-star/liubai-prompt-library/blob/25f0137e36a8fae46aebace86b18cdfeff624a99/bundled-library/entries/PRM-0404/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:
使用示例提示词正文
请使用“Lightbox”(ライトボックス),它是“Landing page & web effects, part 2”中的一个名称。 Motion Prompt #162 定义:在变暗的页面上方放大显示图像。 示例展示:点击画廊缩略图后,页面变暗,照片在中央放大;点击×后缩回原缩略图。 规格: - 视口511×168,四张缩略图各108×72、圆角半径6。0.75 s点击第三张,3.0 s点击右上角×。单次4.7 s,在9.4 s包循环内播放两次。 - 打开:0.85–1.3 s内,0.45 s三次ease-out,深色覆盖层rgb(14,18,28)的不透明度0→0.82,并将所选缩略图放大至中央261×128。 - 打开过程后半段,照片下方出现“3 / 4”,两侧出现前后箭头,右上角出现×。 - 关闭:3.05–3.4 s内,0.35 s三次ease-in-out,反向执行相同运动,照片回到原缩略图。 何时使用:用于案例、作品集或产品照片,无需离开页面即可放大查看。 参考实现(Canvas 2D,画面仅由时间决定的函数):https://showheyohtaki.github.io/motion-prompt/api/v1/en/e/162.txt 共享辅助代码:https://showheyohtaki.github.io/motion-prompt/api/v1/kit/lp2.js 请保持参考实现的形状、时间安排和缓动数值不变,只调整文字、颜色和素材,以适配我正在制作的项目。
使用示例
示例输入
请实现“灯箱 · Lightbox”:点击图片后在变暗的背景上放大;中文译文,效果未实测。
示意结果
下方是来源作者提供的静态画面和可播放动效参考,并非本站对该提示词调用模型生成的结果。
提示词仅供参考,请结合实际场景调整,并核实 AI 生成结果。