{"schemaVersion":1,"id":"lenis","name":"Lenis","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/lenis/","officialUrl":"https://lenis.dev/","isCatalog":false,"description":"A library for smooth scrolling and synchronizing DOM/WebGL animations. Useful for scroll scenes and integration with GSAP.","tasks":["Smooth landing-page scrolling","Synchronizing WebGL, DOM, and GSAP scroll animations"],"categoryIds":["motion","frontend"],"subcategoryIds":["motion.scroll","frontend.utilities"],"tags":["Lenis","WebGL"],"aliases":["Lenis"],"platforms":[],"stack":["JavaScript","WebGL / WebGPU"],"compatibility":null,"pricing":"free","freeUsage":"The library is free; no subscription is needed.","paidUsage":null,"license":"MIT.","selectionGuide":{"purpose":"Smooth landing-page scrolling","chooseWhen":["Smooth landing-page scrolling","Synchronizing WebGL, DOM, and GSAP scroll animations"],"considerInstead":[],"requirements":["Include the recommended CSS and choose autoRaf or your own raf; with GSAP, convert ticker time to milliseconds."],"limitations":["Access terms: The library is free; no subscription is needed.","Terms of use: MIT.","The GSAP ticker supplies seconds and lenis.raf accepts milliseconds; incorrect units break synchronization."],"faq":[{"question":"What can you use for free in Lenis?","answer":"The library is free; no subscription is needed."},{"question":"What are the access terms for Lenis?","answer":"The library is free; no subscription is needed."},{"question":"What terms of use matter for Lenis?","answer":"MIT."},{"question":"Which environment can you use Lenis in?","answer":"Tech stack: JavaScript, WebGL / WebGPU."},{"question":"How do you get started with Lenis?","answer":"For the task “Smooth landing-page scrolling”: test the page with normal scrolling, then add the chosen mechanism in one place. Tie the effect to the section's actual position rather than assuming a fixed viewport height. Test resizing, media loading, and returning to the page; coordinate the behavior with other effects."},{"question":"Why does the Lenis/GSAP integration example multiply time by 1000?","answer":"The README connects the GSAP ticker to lenis.raf(time * 1000): the ticker uses seconds, while Lenis uses milliseconds. The scroll event is also connected to ScrollTrigger.update. Choose a consistent update path and test movement while scrolling."}],"related":[],"sources":["https://lenis.dev/","https://github.com/darkroomengineering/lenis","https://github.com/darkroomengineering/lenis/blob/main/LICENSE","https://alive-aluminum-01b.notion.site/vibecoding-guide-loads-of-UI-tools-85486fdb514283d1833b8148b167c182","https://raw.githubusercontent.com/darkroomengineering/lenis/main/README.md","https://raw.githubusercontent.com/darkroomengineering/lenis/main/LICENSE"]},"selectionCheckedAt":null,"applicationGuide":{"inputs":["A page with long content and one area that needs controlled scrolling.","Existing scroll handlers and navigation paths to page sections.","From the tech stack mentioned on this page, choose an option that suits your project: WebGL; check version compatibility in the documentation."],"steps":["For the task “Smooth landing-page scrolling”: test the page with normal scrolling, then add the chosen mechanism in one place.","Tie the effect to the section's actual position rather than assuming a fixed viewport height.","Test resizing, media loading, and returning to the page; coordinate the behavior with other effects."],"checks":["Mouse wheel, touch, keyboard, and section links produce the expected result.","Long pages remain readable; reduced motion and less powerful devices do not block navigation."],"goal":"Example workflow with Lenis: Smooth landing-page scrolling."},"sources":["https://lenis.dev/","https://github.com/darkroomengineering/lenis","https://github.com/darkroomengineering/lenis/blob/main/LICENSE","https://alive-aluminum-01b.notion.site/vibecoding-guide-loads-of-UI-tools-85486fdb514283d1833b8148b167c182","https://raw.githubusercontent.com/darkroomengineering/lenis/main/README.md","https://raw.githubusercontent.com/darkroomengineering/lenis/main/LICENSE"],"checkedAt":"2026-10-03","reviewScope":"Purpose and published terms were reviewed against the cited primary sources. This product page does not confirm execution or testing in every environment.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Smooth-scrolling library","kind":"library","pricingNote":"The library is free; no subscription is needed.","notes":null,"labeledSources":[{"url":"https://lenis.dev/","label":"Official website"},{"url":"https://github.com/darkroomengineering/lenis","label":"Source code"},{"url":"https://github.com/darkroomengineering/lenis/blob/main/LICENSE","label":"License"},{"url":"https://alive-aluminum-01b.notion.site/vibecoding-guide-loads-of-UI-tools-85486fdb514283d1833b8148b167c182","label":"Original material"},{"url":"https://raw.githubusercontent.com/darkroomengineering/lenis/main/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/darkroomengineering/lenis/main/LICENSE","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}