返回提示词

Motion Prompt #087|前后对比滑块 · Before/after slider(中文译文)

拖动分隔线比较处理前后;中文译文,效果未实测。

发布于 更新于 浏览 0

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

使用示例

提示词正文

请使用“Before/after slider”(ビフォーアフタースライダー),它是“Landing page & web effects”中的一个名称。
Motion Prompt #087

定义:拖动分界线,比较前后效果。
示例展示:左右拖动照片中央分界线,改变左侧灰色“之前”和右侧彩色“之后”的可见比例。
规格:
- 照片框359 × 140,圆角半径10。右侧为彩色处理后照片;左侧为同一照片的处理前版本,去饱和并叠加不透明度0.18的深蓝色。
- 处理前图像裁切在分界线左侧;线上有宽3的白线和半径17、带左右箭头的白圆。
- 0.7 s抓住白圆;分界从50%→20%(0.75–1.55 s)→82%(1.55–2.65 s)→50%(2.65–3.55 s),均为cubic ease-in-out。
- 3.62 s释放;左上标BEFORE,右上标AFTER。
何时使用:展示装修、美容或照片修饰等改变前后的页面。

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

使用示例

示例输入

请实现“前后对比滑块 · Before/after slider”:拖动分隔线比较处理前后;中文译文,效果未实测。

示意结果

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

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