Locomotive Scroll skill
Plan smooth scrolling, parallax and GSAP integration while checking API versions and accessibility.
Community · Claude Design Skillstack| Author | Claude Design Skillstack |
|---|---|
| Licence | MIT (LICENSE); Apache-2.0 (plugin.json) |
| Source | freshtechbro/claudedesignskills · SKILL.md on GitHub |
| Project website | scroll.locomotive.ca |
| Works in | Claude Code · Codex, Gemini CLI, Cursor, Copilot |
| Read from the source on |
locomotive-scroll supplies smooth-scrolling, parallax, viewport and GSAP integration patterns for a coding agent.
Its examples include older container and scrollerProxy APIs. The official site now describes a Lenis-based v5 rewrite; match the installed version rather than copying those snippets unchanged.
From the skill's SKILL.md: # Locomotive Scroll
What it does
- Inspect scrolling containers and select suitable enhancement behavior.
- Connect parallax, viewport events and optional GSAP timelines.
- Refresh measurements and destroy instances on lifecycle changes.
What you get
- Scroll configuration and integration code.
- Version and accessibility checks for the affected page.
When to use it
- Maintain an existing Locomotive Scroll integration.
- Plan a version-aware parallax enhancement with native fallback.
When not to use it
- Applying legacy private APIs directly to a new v5 project.
What it needs
- A JavaScript application and the matching Locomotive Scroll version.
- GSAP only for its integration patterns; Python 3 for optional configuration helpers.
Files in the skill
| File or folder | What it is for |
|---|---|
SKILL.md | Scroll behavior and integration patterns. |
scripts/generate_config.py | Configuration boilerplate. |
scripts/integration_helper.py | Framework and GSAP integration examples. |
references/api_reference.md | Bundled API reference. |
Licence as found in the repository on 2026-11-17: MIT (LICENSE); Apache-2.0 (plugin.json).
Example prompts
Type one of these after installing; naming the skill makes sure it is used.
- Identify our installed Locomotive Scroll version before proposing parallax changes.
- Audit this integration for fixed-position and keyboard navigation problems.
- Add cleanup and a reduced-motion fallback without changing our page content.
How to install locomotive-scroll
Legacy examples
Official v5 documentation is the reference for a v5 project. Older smooth-container configuration and internal scroll.instance access in this skill need adaptation.
Root MIT licensing conflicts with Apache-2.0 plugin metadata. Keep that unresolved source inconsistency visible when redistributing.
A skill is a folder with a SKILL.md file. You install it once; the agent reads its short description at the start of each session and loads the full instructions only when a request matches. Pick the place you use:
Claude Code: from the plugin marketplace
- Start Claude Code in a terminal with
claude. - Add the marketplace (once per computer):
/plugin marketplace add freshtechbro/claudedesignskills - Install the plugin. Claude Code opens its details first: check what it will add (skills, hooks, MCP servers), then choose whether it is for you, for everyone on this repository, or for you in this repository only.
/plugin install locomotive-scroll@claude-design-skillstack - Type / and look for
/locomotive-scroll:locomotive-scroll, or simply ask for the task.
From your shell instead of a session:
claude plugin marketplace add freshtechbro/claudedesignskills
claude plugin install locomotive-scroll@claude-design-skillstackClaude Code: copy the folder into your skills folder
Put the skill's folder in ~/.claude/skills/ to use it in every project on this computer, or in .claude/skills/ inside a repository to share it with everyone who works there (commit it).
git clone --depth 1 https://github.com/freshtechbro/claudedesignskills.git
mkdir -p ~/.claude/skills
cp -R claudedesignskills/plugins/individual/locomotive-scroll/skills/locomotive-scroll ~/.claude/skills/Claude Code notices new or changed skills in these folders during the session. If the skills folder did not exist when the session started, run /reload-skills once. Then type /locomotive-scroll or just describe the task.
On Windows, run the commands in Git Bash or WSL, or copy the folder into the same place with File Explorer.
Codex, Gemini CLI, Cursor and GitHub Copilot
These agents read the same SKILL.md folders. The one folder all four accept inside a project is .agents/skills/, so this copies the skill there:
git clone --depth 1 https://github.com/freshtechbro/claudedesignskills.git
mkdir -p .agents/skills
cp -R claudedesignskills/plugins/individual/locomotive-scroll/skills/locomotive-scroll .agents/skills/| Agent | Project folder | Your user folder | Notes |
|---|---|---|---|
| OpenAI Codex | .agents/skills/ | ~/.agents/skills/ | Type $ or run /skills to pick a skill; Codex also chooses one when your task matches. |
| Gemini CLI | .agents/skills/.gemini/skills/ | ~/.agents/skills/~/.gemini/skills/ | Or install from Git with gemini skills install <git URL> --path <folder> --consent. Google replaced Gemini CLI with Antigravity CLI for free-tier and Google One users on 18 June 2026; Antigravity uses .agents/skills/ in a project and ~/.gemini/config/skills/ for you. |
| Cursor | .agents/skills/.cursor/skills/ | ~/.agents/skills/~/.cursor/skills/ | Type / in Agent chat to pick a skill. Cursor also reads Claude Code's .claude/skills/ folders. |
| GitHub Copilot | .github/skills/.agents/skills/.claude/skills/ | ~/.copilot/skills/~/.agents/skills/ | Works in Copilot CLI, the cloud agent, and agent mode in VS Code, Visual Studio and JetBrains (IDE support depends on the version). Or run gh skill install OWNER/REPOSITORY SKILL (public preview, GitHub CLI 2.90.0 or later). |
Sources for these steps
Checked against each vendor's documentation on 2026-11-14:
Version-aware maintenance
The checked official site reports v5.1, based on Lenis. Treat this as a dated observation, not a permanently current package requirement.
Test focus navigation, anchor links, mobile touch and route cleanup in the real application. Visual smoothness alone does not prove usability.
Questions about locomotive-scroll
Is this the current official skill?
No. It is community material and contains examples that predate the current official library rewrite.
Should all scrolling be smoothed?
No. Respect keyboard navigation, reduced motion and mobile behavior; retain a usable native path.
Does it need GSAP?
Only if the requested integration uses GSAP ScrollTrigger. Basic scrolling uses Locomotive Scroll itself.
Why does fixed positioning break?
Transformed scroll containers can change the containing block in older integrations. Check the actual library version and DOM structure.
More AI skills
Related skills
Motion & Framer Motion skill
Community · Claude Design SkillstackCreate React motion components, exit transitions, variants, gestures and layout animations.Fixing Motion Performance skill
Community · ibelickRepair animation jank by reviewing measurements, scroll work, paint cost and compositor behavior.Thumbnail Design skill
Community · Frank HeijdenrijkBrief honest, mobile-readable video thumbnails and plan a native comparison test.Design and Templates skill
Community · Frank HeijdenrijkSpecify a reusable brand kit, template family and production workflow for recurring social graphics.Quote Cards and Text Graphics skill
Community · Frank HeijdenrijkChoose and attribute one strong line, then brief a readable typographic card without fabricating quotes.Pinterest Pin Design skill
Community · Frank HeijdenrijkBrief vertical Pinterest concepts with readable keyword overlays and distinct variants for a real destination.