<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/add-locomotive-scrolling-to-your-site-yxqjqkh1s" -->

---
title: Add Locomotive Scrolling to Your Site | daily.dev
description: Locomotive Scroll is a JavaScript library that enhances user scrolling experiences with features like smooth scrolling, page overlay scroll, parallax effects,...
canonical: https://daily.dev/posts/add-locomotive-scrolling-to-your-site-yxqjqkh1s
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Add Locomotive Scrolling to Your Site | daily.dev
og:description: Locomotive Scroll is a JavaScript library that enhances user scrolling experiences with features like smooth scrolling, page overlay scroll, parallax effects,...
og:url: https://daily.dev/posts/add-locomotive-scrolling-to-your-site-yxqjqkh1s
og:image: https://api.daily.dev/og/posts/YxqjqKH1S.png
og:image:alt: Add Locomotive Scrolling to Your Site
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Locomotive Scrolling to Your Site

**[asayer](https://daily.dev/sources/asayer)** · 14 min read · 54 upvotes · 2 comments

## Summary

Locomotive Scroll is a JavaScript library that enhances user scrolling experiences with features like smooth scrolling, page overlay scroll, parallax effects, and more. This guide covers how to set up the library using Vite, configure various scrolling features, and implement them in a demo project. Key highlights include smooth scrolling, speed scrolling, sticky scroll, parallax scroll, and scroll-into-view animations. Integrating Locomotive Scroll can significantly improve the user experience with captivating and dynamic scrolling effects.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.openreplay.com/add-locomotive-scrolling-to-your-site/>

## Community discussion

Top comments from developers on daily.dev.

**@bhalli** · 1 upvotes

> Thanks

**@kbzcomuy** · 0 upvotes

> Thanks!

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#javascript](https://daily.dev/tags/javascript), [#open-source](https://daily.dev/tags/open-source), [#ux](https://daily.dev/tags/ux), [#frontend](https://daily.dev/tags/frontend)

[View this post on daily.dev](https://daily.dev/posts/add-locomotive-scrolling-to-your-site-yxqjqkh1s)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Add Locomotive Scrolling to Your Site","url":"https://daily.dev/posts/add-locomotive-scrolling-to-your-site-yxqjqkh1s","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/add-locomotive-scrolling-to-your-site-yxqjqkh1s"},"datePublished":"2024-07-19T22:43:50.049Z","dateModified":"2024-10-05T18:19:33.108Z","description":"Locomotive Scroll is a JavaScript library that enhances user scrolling experiences with features like smooth scrolling, page overlay scroll, parallax effects,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/23c2dc5844e43d3542f38f09947ddea0?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/23c2dc5844e43d3542f38f09947ddea0?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"asayer","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"asayer","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/be8d9d38650943c8a1718ba79f23e9ac","url":"https://daily.dev/sources/asayer"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/add-locomotive-scrolling-to-your-site-yxqjqkh1s","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":54},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"webdev,javascript,open-source,ux,frontend","timeRequired":"PT14M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"asayer","item":"https://daily.dev/sources/asayer"},{"@type":"ListItem","position":3,"name":"Add Locomotive Scrolling to Your Site"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/add-locomotive-scrolling-to-your-site-yxqjqkh1s","comment":[{"@type":"Comment","text":"Thanks","datePublished":"2024-08-29T11:56:29.271Z","url":"https://daily.dev/posts/YxqjqKH1S#c-qfVZY2rqh","author":{"@type":"Person","name":"Bhalli B","url":"https://daily.dev/bhalli","image":"https://media.daily.dev/image/upload/s--EZY96GZD--/f_auto/v1775654852/avatars/avatar_ofWzh3RzsL4DVNMEKeb6n?_a=BAMAMiWQ0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Thanks!","datePublished":"2024-07-29T14:05:30.781Z","url":"https://daily.dev/posts/YxqjqKH1S#c-g3yhQsPuQ","author":{"@type":"Person","name":"[kbz]","url":"https://daily.dev/kbzcomuy","image":"https://media.daily.dev/image/upload/s--B_YkclR---/f_auto/v1722257044/avatars/avatar_s37G5dZ6tKLltOW4JxzOR"}}]}
```

