返回提示词

Motion Prompt #145|滚动时间轴 · Timeline on scroll(中文译文)

滚动时时间轴的线条随之延伸;中文译文,效果未实测。

发布于 更新于 浏览 0

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

使用示例

提示词正文

请使用“Timeline on scroll”(タイムラインアニメーション),它是“Landing page & web effects, part 2”中的一个名称。
Motion Prompt #145

定义:时间轴的线随滚动延长。
示例展示:页面向下滚动时,橙色线沿时间轴向下延伸;到达每个圆点后,圆点填满,年份与事件从右侧滑入。向上滚动则反向还原。
规格:
- 浏览器视口为511×168。滚动在0.3–2.3 s内从0→190 px,在3.0–4.3 s内从190→0,使用三次ease-in-out。单次4.7 s,在9.4 s包循环内播放两次。
- 时间轴位于x = 168,橙色线在宽3的灰色轨道上延伸。线头位于滚动量 + 126 px,因此始终距视口顶部126 px、距底部42 px。
- 五个条目对应2018–2026,圆点位于页面y = 72、126、180、234、288;圆点白色、半径7.5、环宽2.5。
- 线头经过圆点后,再延伸22 px期间以三次ease-out完成:圆环变橙,内部圆点半径0→4,年份(18 px、橙色)和事件(15 px)淡入并从右侧滑动16 px。
- 向上滚动时使用同一公式缩短线并隐藏条目;右侧滚动条滑块跟随滚动量。
何时使用:用于按时间顺序阅读的公司历史、里程碑或分步流程。

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

使用示例

示例输入

请实现“滚动时间轴 · Timeline on scroll”:滚动时时间轴的线条随之延伸;中文译文,效果未实测。

示意结果

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

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