·locomotive-scroll
</>

locomotive-scroll

Locomotive Scroll 具有视差效果、视口检测和滚动驱动动画的平滑滚动库的综合技能。在实现流畅的滚动体验、创建视差效果、构建滚动触发的动画或开发沉浸式滚动网站时,请使用此技能。触发涉及机车滚动、平滑滚动、视差、滚动检测、滚动事件、粘性元素、水平滚动或 GSAP ScrollTrigger 集成的任务。与 GSAP 集成以实现高级滚动驱动动画。

14安装·1热度·@freshtechbro

安装

$npx skills add https://github.com/freshtechbro/claudedesignskills --skill locomotive-scroll

如何安装 locomotive-scroll

通过命令行快速安装 locomotive-scroll AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/freshtechbro/claudedesignskills --skill locomotive-scroll
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:freshtechbro/claudedesignskills。

SKILL.md

查看原文

Comprehensive guide for implementing smooth scrolling, parallax effects, and scroll-driven animations using Locomotive Scroll.

Every Locomotive Scroll implementation requires specific data attributes:

| data-scroll | Enable detection | data-scroll | | data-scroll-speed | Parallax speed | data-scroll-speed="2" | | data-scroll-direction | Parallax axis | data-scroll-direction="horizontal" | | data-scroll-sticky | Sticky positioning | data-scroll-sticky | | data-scroll-target | Sticky boundary | data-scroll-target="#section" |

Locomotive Scroll 具有视差效果、视口检测和滚动驱动动画的平滑滚动库的综合技能。在实现流畅的滚动体验、创建视差效果、构建滚动触发的动画或开发沉浸式滚动网站时,请使用此技能。触发涉及机车滚动、平滑滚动、视差、滚动检测、滚动事件、粘性元素、水平滚动或 GSAP ScrollTrigger 集成的任务。与 GSAP 集成以实现高级滚动驱动动画。 来源:freshtechbro/claudedesignskills。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/freshtechbro/claudedesignskills --skill locomotive-scroll
分类
</>开发工具
认证
收录时间
2026-03-09
更新时间
2026-03-10

Browse more skills from freshtechbro/claudedesignskills

快速解答

什么是 locomotive-scroll?

Locomotive Scroll 具有视差效果、视口检测和滚动驱动动画的平滑滚动库的综合技能。在实现流畅的滚动体验、创建视差效果、构建滚动触发的动画或开发沉浸式滚动网站时,请使用此技能。触发涉及机车滚动、平滑滚动、视差、滚动检测、滚动事件、粘性元素、水平滚动或 GSAP ScrollTrigger 集成的任务。与 GSAP 集成以实现高级滚动驱动动画。 来源:freshtechbro/claudedesignskills。

如何安装 locomotive-scroll?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/freshtechbro/claudedesignskills --skill locomotive-scroll 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/freshtechbro/claudedesignskills