Skip to content

Locomotive Scroll skill

Plan smooth scrolling, parallax and GSAP integration while checking API versions and accessibility.

Community · Claude Design Skillstack
AuthorClaude Design Skillstack
LicenceMIT (LICENSE); Apache-2.0 (plugin.json)
Sourcefreshtechbro/claudedesignskills · SKILL.md on GitHub
Project websitescroll.locomotive.ca
Works inClaude 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

This is a community skill by Claude Design Skillstack, not checked by us or by Anthropic. Skills can tell the agent to run code, read files or call the network. Before installing, read its SKILL.md and every script in the folder, and look for anything that does not match what it says it does.

What it does

  1. Inspect scrolling containers and select suitable enhancement behavior.
  2. Connect parallax, viewport events and optional GSAP timelines.
  3. 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 folderWhat it is for
SKILL.mdScroll behavior and integration patterns.
scripts/generate_config.pyConfiguration boilerplate.
scripts/integration_helper.pyFramework and GSAP integration examples.
references/api_reference.mdBundled 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

  1. Start Claude Code in a terminal with claude.
  2. Add the marketplace (once per computer):
    /plugin marketplace add freshtechbro/claudedesignskills
  3. 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
  4. 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-skillstack

Claude 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/
AgentProject folderYour user folderNotes
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).
Only install skills you trust. Anthropic's advice is to use skills only from trusted sources, and to read every file of any other skill before using it: a skill can direct the agent to run commands, read files or send data in ways its description does not mention.

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

Skill categories