返回提示词

Motion Prompt #077|横向滚动 · Horizontal scroll(中文译文)

纵向滚动驱动内容横移;中文译文,效果未实测。

发布于 更新于 浏览 0

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

使用示例

提示词正文

请使用“Horizontal scroll”(横スクロール),它是“Landing page & web effects”中的一个名称。
Motion Prompt #077

定义:向下滚动使内容横向移动。
示例展示:页面向下滚动时,分区保持原位,四张编号作品卡向左移动。
规格:
- 滚动量在0.3–3.0 s从0→420 px,3.5–4.5 s从420→0,使用cubic ease-in-out。
- 标题“WORKS”滚走;分区在滚动40 px时抵达顶部并固定。
- 四张卡片各200 × 112,间距20,两侧内边距34。横向行程=34·2 + 200·4 + 20·3 − 511 = 417 px。
- 卡片x = 起始x − p × 417,p = (scroll − 40) / 380;位移与滚动量线性对应,不添加缓动。
- 卡片横移时,滚动条滑块仍然向下移动。
何时使用:在纵向长页面里横向展示作品、案例或产品。

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

使用示例

示例输入

请实现“横向滚动 · Horizontal scroll”:纵向滚动驱动内容横移;中文译文,效果未实测。

示意结果

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

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