{"full_name":"locomotivemtl/locomotive-scroll","owner":"locomotivemtl","name":"locomotive-scroll","shard":"1","url":"https://github.com/locomotivemtl/locomotive-scroll","description":"🛤 Detection of elements in viewport & smooth scrolling with parallax.","homepage":"https://scroll.locomotive.ca","topics":["smooth-scrolling","parallax","in-view","javascript"],"tag_pages":["javascript"],"language":"TypeScript","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/1923096?v=4","created_at":"2016-10-12T20:12:46Z","pushed_at":"2026-11-13T22:53:51Z","metrics":{"stars":8899,"forks":1111,"watchers":70,"issues":498,"prs":153,"releases":17,"issues_open":4,"issues_closed":494,"prs_open":0,"prs_closed":73,"prs_merged":80,"discussions":0},"growth":{"day":{"stars":1,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[8899,8899,8897,8898,8897,8898,8899],"forks":[1112,1112,1111,1111,1111,1111,1111],"watchers":[null,72,71,71,71,70,70],"issues_open":[null,7,6,6,4,4,4],"prs_open":[null,22,20,21,19,0,0]},"boards":{},"same_owner":[],"issues":[{"number":631,"title":"Horizontal scroll is not working","comments":0,"created_at":"2026-10-16T02:09:27Z"},{"number":630,"title":"Next.js example unavailable","comments":0,"created_at":"2026-09-29T20:31:39Z"},{"number":629,"title":"[data-scroll-offset=\"calc(100% - 100px), 0\"]","comments":0,"created_at":"2026-07-16T09:53:21Z"},{"number":596,"title":"Expose a useLocomotiveScroll hook","comments":0,"created_at":"2026-02-05T23:27:53Z"}],"discussions":[],"latest_release":{"name":"v5.1.1","tag":"v5.1.1","published_at":"2026-11-13T22:42:50Z","body":"\n### Fixed\n\n- An element with `data-scroll-delay` stops rendering once it is out of the viewport. It used to update its `transform` on every frame while scrolling and for about 1.5 seconds after. It now jumps to its final position out of sight, and resumes from there when it comes back.\n- `data-scroll-position=\"start,end\"`, the documented default, no longer puts the element in the per-frame loop. The library compared it to `top,bottom` instead. An explicit `top,bottom` now gets the per-frame loop, with the same result as before.\n- Scroll elements are measured once per resize instead of twice. The library listened to both Lenis resize callbacks, which Lenis always calls together.\n- Lenis is driven by `performance.now()` instead of `Date.now()`. A change of the system clock, from a time sync or after sleep, no longer makes a smooth scroll skip ahead or stall.\n- Touch devices are detected by their primary pointer, `(pointer: coarse)`, instead of touch support. A laptop with a touchscreen, used with a mouse or a trackpad, keeps the parallax and the delay. The detection follows a change of the primary pointer, such as a tablet attached to a keyboard.\n- An element with `data-scroll-delay` no longer jumps when it comes back on screen with a small `rafRootMargin`. It starts from the position it was left at, and the gap to its trail fades out at the delay's pace.\n\n","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}