locomotive-scroll

Implement smooth scrolling and parallax effects with Locomotive Scroll.

682|115|Updated Oct 25, 2025
One-click install
npx skills add https://github.com/freshtechbro/claudedesignskills --skill locomotive-scroll
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: locomotive-scroll
Source: https://github.com/freshtechbro/claudedesignskills/tree/main/plugins/bundles/extended-3d-scroll/skills/locomotive-scroll
Command: npx skills add https://github.com/freshtechbro/claudedesignskills --skill locomotive-scroll

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a premium, hardware-accelerated smooth scrolling experience for websites, enhancing user engagement with fluid animations and parallax effects.

Core Features & Use Cases

  • Smooth Scrolling: Replaces native browser scroll with a buttery-smooth, customizable animation.
  • Parallax Effects: Creates depth and visual interest by moving elements at different speeds relative to scroll.
  • Viewport Detection: Triggers animations or actions as elements enter or leave the viewport.
  • Sticky Elements: Pins elements in place as the user scrolls past them.
  • Use Case: Implement an immersive landing page with background parallax layers that move at different speeds, while key call-to-action elements stick to the screen at specific scroll points.

Quick Start

Initialize Locomotive Scroll with smooth scrolling enabled on the element with the data-scroll-container attribute.

Frequently Asked Questions about locomotive-scroll

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add smooth scrolling and parallax effects to my web page using JavaScript?

You implement smooth scrolling and parallax effects by initializing a JavaScript library on an HTML container with specific data attributes. This replaces native browser scrolling with hardware-accelerated, fluid animations for an immersive user experience.

What is hardware-accelerated smooth scrolling and when do I need it for web animation?

Hardware-accelerated smooth scrolling is a web animation technique that overrides native browser scrolling to deliver fluid, premium motion. You need it when building immersive landing pages that require scroll-driven interactions, sticky elements, and dynamic parallax depth.

Can I trigger animations based on viewport detection while scrolling?

Yes, you can trigger animations using viewport detection. The library tracks when elements enter or leave the viewport, enabling you to execute scroll-driven interactions and actions dynamically as users navigate the page.

Does implementing smooth scrolling require specific HTML structure?

Yes, implementing smooth scrolling requires a specific HTML structure. You must apply designated data attributes to your HTML elements and initialize the JavaScript library on a targeted container element to achieve seamless integration.

What are the limitations of replacing native browser scroll with JavaScript smooth scroll?

Replacing native browser scroll with JavaScript smooth scroll requires careful integration using specific data attributes. Heavy use of sticky elements and parallax layers on complex pages may impact performance, requiring precise viewport-aware configuration to maintain seamless scrolling.