locomotive-scroll

Initialize Locomotive Scroll for smooth scrolling and parallax effects.

Updated May 24, 2026
One-click install
npx skills add https://github.com/yonetim258852/ozgur-os --skill locomotive-scroll-yonetim258852
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: locomotive-scroll
Source: https://github.com/yonetim258852/ozgur-os/tree/main/.claude/skills/locomotive-scroll
Command: npx skills add https://github.com/yonetim258852/ozgur-os --skill locomotive-scroll-yonetim258852

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Locomotive Scroll provides a ready-made solution for implementing smooth, hardware-accelerated scrolling, multi-layer parallax, and scroll-driven animations, removing the need to reinvent scrolling logic.

Core Features & Use Cases

  • Smooth scrolling with lerp and easing for a natural feel.
  • Parallax layers and sticky elements via data-scroll attributes for multi-layer depth.
  • Viewport detection and in-view callbacks, plus optional GSAP ScrollTrigger integration for advanced animations.
  • Use cases: immersive landing pages, storytelling long-form sites, dashboards and product tours.

Quick Start

Install Locomotive Scroll in your project and initialize it with a container matching data-scroll-container to enable smooth scrolling and parallax effects.

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 a web page?

Smooth scrolling and parallax effects are added by initializing Locomotive Scroll on a container element and configuring data attributes for multi-layer depth and hardware-accelerated scrolling. This provides a natural lerp and easing feel.

Does Locomotive Scroll work with GSAP ScrollTrigger for scroll-driven animations?

Yes, Locomotive Scroll supports optional integration with GSAP ScrollTrigger to synchronize scroll-driven animations. This allows you to trigger advanced visual effects and callbacks based on the viewport detection of specific elements.

Can I use this smooth scrolling implementation for mobile responsive websites?

Yes, this implementation supports mobile responsiveness to deliver consistent scrolling experiences across devices. It handles viewport detection and adjusts parallax layers and sticky elements for mobile environments.

What is the best way to set up sticky elements and parallax layers during scroll?

The best way to set up sticky elements and parallax layers is by using data-scroll attributes within your container. This framework-agnostic approach manages multi-layer depth and viewport callbacks automatically during scroll.

Do I need a specific framework to implement scroll-driven storytelling on my landing page?

No framework is required because this is a framework-agnostic implementation. You can apply it directly to modern websites, including immersive landing pages and long-form storytelling sites, using standard initialization options and data attributes.

Why does smooth scrolling sometimes feel laggy on long-form sites?

Smooth scrolling can feel laggy if lerp and easing values are not optimized for your content length. Adjusting initialization options and ensuring proper viewport detection helps maintain performance across long-form storytelling sites and dashboards.