·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