locomotive-scroll

locomotive-scroll is a skill for Claude Code from freshtechbro/claudedesignskills. It costs 101 tokens per session (2,956 once invoked), scanned A, original, MIT.

A guide to Locomotive Scroll, a JavaScript library for smooth scrolling, parallax movement, viewport detection, sticky elements, scroll events, and horizontal scrolling. Parallax makes elements move at different speeds to create depth.

In plain words
What is it for?
Use it for immersive landing pages, long-form storytelling, scroll-triggered animations, depth effects, smooth scrolling, and layouts that move horizontally.
Why use it?
It provides patterns for coordinating scrolling and motion while calling out accessibility, performance, mobile, and fixed-positioning concerns. This helps avoid treating scroll effects as purely visual code.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it for immersive landing pages, long-form storytelling, scroll-triggered animations, depth effects, smooth scrolling, and layouts that move horizontally.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/freshtechbro/claudedesignskills/locomotive-scroll
About the project

Claude Design Skillstack is a set of Claude Code extensions that teach the agent techniques and tools for web development, especially 3D graphics, WebGL, animation, and interactive interfaces. Its coverage includes technologies such as Three.js, GSAP, React Three Fiber, Framer Motion, and Babylon.js. The catalogue entries are its skills, commands, plugins, and instructions for applying that design and development knowledge.

freshtechbro/claudedesignskills · 1,471 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add freshtechbro/claudedesignskills --skill locomotive-scroll
Clone the repo
git clone --depth 1 https://github.com/freshtechbro/claudedesignskills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for locomotive-scroll

README.md
[![agentmods](https://agentmods.dev/badge/skills/freshtechbro/claudedesignskills/locomotive-scroll/github.svg)](https://agentmods.dev/skills/freshtechbro/claudedesignskills/locomotive-scroll)
Your own site
<a href="https://agentmods.dev/skills/freshtechbro/claudedesignskills/locomotive-scroll"><img src="https://agentmods.dev/badge/skills/freshtechbro/claudedesignskills/locomotive-scroll/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for locomotive-scroll

Your own site · 80×15
<a href="https://agentmods.dev/skills/freshtechbro/claudedesignskills/locomotive-scroll"><img src="https://agentmods.dev/badge/skills/freshtechbro/claudedesignskills/locomotive-scroll.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,956 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk warn 15 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00101 $0.02956
Opus 5.5 $0.00040 $0.01182
Sonnet 5.5 $0.00020 $0.00591
Haiku 4.5 $0.00010 $0.00296

Measured 3mo ago against content hash cfb107ae328e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

locomotive-scroll scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (assets/starter_locomotive/main.js, scripts/generate_config.py, scripts/integration_helper.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/skills/locomotive-scroll/SKILL.md · 481 lines

How it starts

The opening of the file, as written. The whole thing — 481 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Locomotive Scroll

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

Overview

Locomotive Scroll is a JavaScript library that provides:

  • Smooth scrolling: Hardware-accelerated smooth scroll with customizable easing
  • Parallax effects: Element-level speed control for depth
  • Viewport detection: Track when elements enter/exit viewport
  • Scroll events: Monitor scroll progress for animation synchronization
  • Sticky elements: Pin elements within defined boundaries
  • Horizontal scrolling: Support for horizontal scroll layouts

When to use Locomotive Scroll:

  • Building immersive landing pages with parallax
  • Creating smooth, Apple-style scroll experiences
  • Implementing scroll-triggered animations
  • Developing narrative/storytelling websites
  • Adding depth and motion to long-form content

Trade-offs:

  • Scroll-hijacking can impact accessibility (provide disable option)
  • Performance overhead on low-end devices (detect and disable)
  • Mobile touch scrolling feels different (test extensively)
  • Fixed positioning requires workarounds

Installation

npm install locomotive-scroll
// ES6
import LocomotiveScroll from 'locomotive-scroll';
import 'locomotive-scroll/dist/locomotive-scroll.css';

// Or via CDN
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/locomotive-scroll/dist/locomotive-scroll.min.css">
<script src="https://cdn.jsdelivr.net/npm/locomotive-scroll/dist/locomotive-scroll.min.js"></script>

Core Concepts

1. HTML Structure

Every Locomotive Scroll implementation requires specific data attributes:

<!-- Scroll container (required) -->
<div data-scroll-container>

  <!-- Scroll sections (optional, improves performance) -->
  <div data-scroll-section>

    <!-- Tracked elements -->
    <h1 data-scroll>Basic detection</h1>

    <!-- Parallax element -->
    <div data-scroll data-scroll-speed="2">
      Moves faster than scroll
    </div>

    <!-- Sticky element -->
    <div data-scroll data-scroll-sticky>
      Sticks within section
    </div>

    <!-- Element with ID for tracking -->
    <div data-scroll data-scroll-id="hero">
      Accessible via JavaScript
    </div>

    <!-- Call event trigger -->
    <div data-scroll data-scroll-call="fadeIn">
      Triggers custom event
    </div>

  </div>
</div>

Read the full file on GitHub · 481 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 481 lines · 101 tokens per session scan A cfb107ae328e

Subscribe to this mod's changes

locomotive-scroll is a skill published in the GitHub repository freshtechbro/claudedesignskills (1,471 stars, last pushed 1y ago), licensed MIT. It adds 101 tokens to every session and 2,956 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

locomotive-scroll compared with skills from other repositories

locomotive-scroll next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
locomotive-scrollfreshtechbro/claudedesignskillsSkill1.5k1y agoMITA101Claude Code
anti-slop-designsickn33/agentic-awesome-skillsSkill51kyesterdayMITA34Claude Code
chakra-ui-builderchakra-ui/chakra-uiSkill41ktodayMITA214Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34ktodayMITA52Codex
prototype-webnexu-io/html-anythingSkill17kyesterdayApache-2.0A24Claude Code, Codex
open-design-setupcompozy/compozySkill2.9ktodayMITA67Claude Code, Codex
edit-sitemicrosoft/power-platform-skillsSkill1.2ktodayMITA104Claude Code