返回提示词

Motion Prompt #076|滚动固定 · Pinning

区块固定,滚动推动内部内容变化

发布于 更新于 浏览 0

部分附加信息、来源说明或示例仍显示原文。

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

使用示例

提示词正文

请使用“Pinning”(ピン留め),它是“Landing page & web effects”中的一个名称。
Motion Prompt #076

定义:分区保持固定,滚动推进其内部内容。
示例展示:深蓝分区铺满视口后停住,继续滚动将数字和照片依次切换为1→2→3,然后该分区继续滚走。
规格:
- 滚动量在0.3–3.0 s从0→500 px,3.5–4.5 s从500→0,使用cubic ease-in-out。
- 深蓝分区高168,在滚动110 px时到达顶部,并在接下来的300 px滚动距离内保持固定,相当于GSAP ScrollTrigger pin。
- 固定期间进度p = (scroll − 110) / 300;左侧长124的竖线按p填充为橙色。
- 在p = 1/3和2/3附近(±0.07,cubic ease-in-out)转至下一步:46 px数字向上滚52 px,226 × 124照片向上滑124 px。
- 300 px固定区间结束后解除固定,分区和下方白色分区一起向上滚动。
何时使用:在同一屏内依次讲解步骤、功能或前后对比。

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

使用示例

示例输入

请实现“滚动固定 · Pinning”:区块固定,滚动推动内部内容变化

示意结果

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

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