Skip to content

Smooth scrolling library with parallax, viewport detection, and GSAP ScrollTrigger integration for scroll-driven animation.

CCM score
44 of 100
skills.sh installs
3K
GitHub stars
1.5K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers smooth scrolling setup, parallax speed control, viewport detection, scroll events, sticky elements, and horizontal scrolling
  • Includes HTML data-attribute reference (data-scroll, data-scroll-speed, data-scroll-sticky, data-scroll-call) and programmatic scrollTo options
  • Covers mobile responsiveness with tablet and smartphone breakpoints that can disable smooth scrolling
  • Designed for immersive landing pages and storytelling sites that need scroll-synced GSAP animation

Install

$ npx -y skills add freshtechbro/claudedesignskills --skill locomotive-scroll -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

Details

Repository
github.com/freshtechbro/claudedesignskills
Categories
Animation & Motion, Frontend & UI Code
First seen
Jun 3, 2026

More from freshtechbro/claudedesignskills

All 22

Similar to Locomotive Scroll

More Animation & Motion