登录 注册
其他 darkroom-engineeringperformancereactscrollsmoothsmooth-scroll
17,212
Stars
789
Forks
65
Watchers
40
Open Issues
MIT
许可证
TypeScript
语言
2022-02-21
创建时间
2026-11-11
最近更新

项目能做什么

轻量优雅的 Web 平滑滚动库,带来丝滑顺畅的滚动交互体验。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
[![LENIS](https://assets.darkroom.engineering/lenis/banner.gif)](https://github.com/darkroomengineering/lenis)

[![npm](https://img.shields.io/npm/v/lenis?colorA=E30613&colorB=000000
)](https://www.npmjs.com/package/lenis)
[![downloads](https://img.shields.io/npm/dm/lenis?colorA=E30613&colorB=000000
)](https://www.npmjs.com/package/lenis)
[![size](https://img.shields.io/bundlephobia/minzip/lenis?label=size&colorA=E30613&colorB=000000)](https://bundlephobia.com/package/lenis)

## Introduction

Lenis ("smooth" in latin) is a lightweight, robust, and performant smooth scroll library. It's designed by [@darkroom.engineering](https://twitter.com/darkroomdevs) to be simple to use and easy to integrate into your projects. It's built with performance in mind and is optimized for modern browsers. It's perfect for creating smooth scrolling experiences on your website such as WebGL scroll syncing, parallax effects, and much more, see [Demo](https://lenis.darkroom.engineering/) and [Showcase](https://www.lenis.dev/showcase).

Read our [Manifesto](https://github.com/darkroomengineering/lenis/blob/main/MANIFESTO.md) to learn more about the inspiration behind Lenis.

<br/>

- [Features](#features)
- [Sponsors](#sponsors)
- [Packages](#packages)
- [Showcase](https://www.lenis.dev/showcase)
- [Installation](#installation)
- [Setup](#setup)
- [No-code usage](#no-code-usage)
- [Settings](#settings)
- [Properties](#properties)
- [Methods](#methods)
- [Events](#events)
- [Considerations](#considerations)
- [Limitations](#limitations)
- [Troubleshooting](#troubleshooting)
- [Tutorials](#tutorials)
- [Plugins](#plugins)
- [License](#license)

<br/>

## Features

- **Lightweight & dependency-free** — the whole library is a few KB with zero runtime dependencies
- **Runs on native scroll** — wraps the browser's own scroll, so position: sticky, anchor links, and accessibility keep working
- **Any axis** — smooth vertical, horizontal, and nested scrolling from a single instance
- **Built for sync** — drives WebGL scroll scenes, GSAP ScrollTrigger, and parallax off one loop
- **Framework adapters** — first-class packages for React, Vue, and Framer
- **Scroll snapping** — the snap plugin aligns sections without fighting the smooth scroll

## Sponsors

If you’ve used Lenis and it made your site feel just a little more alive, consider [sponsoring](https://github.com/sponsors/darkroomengineering).

Your support helps us smooth out the internet one library at a time—and lets us keep building tools that care about the details most folks overlook.

<!-- sponsors -->
<a href="https://www.contentarchitecture.dev/?utm_source=lenis&utm_medium=github"><img src="https://darkroom-lenis-showcase.s3.us-east-1.amazonaws.com/pbc_3665759510/23raiqpdg8nej3m/word_49x1dnfo22.svg" height="96" alt="The Content Architecture"/></a>

<a href="https://glauber.org/?utm_source=lenis&utm_medium=github"><img src="https://github.com/glauber-sampaio.png?size=64" width="64" height="64" alt="Glauber"/></a> <a 
阅读完整原文

项目深度分析 AI 生成

高级动效 UI 组件库与模板市场 (Lenis UI Blocks)

产品构想基于 Lenis、TailwindCSS 和 GSAP/Framer Motion 构建的即插即用高端滚动动效组件库(如平滑视差卡片、水平横滚容器、WebGL 纹理转场、文字磁贴)。
核心功能50+ 经过生产验证的现代滚动交互组件;开箱即用的 React/Vue/Svelte 支持;自适应移动端与性能优化策略。
目标用户自由职业前端开发者、外包工作室、独立创作者。
难度/周期中等 · 1 - 2 个月 · 成本:低(主要为官网托管与 Demo 演示服务器成本)
收费模式一次性买断终身授权(如 $79 - $199),或分层订阅式组件库。
竞争风险动效组件维护成本高,需紧跟各大框架与 Lenis 主版本迭代升级。
依据 已验证事实(Lenis 具备极高的 Star 关注度和大量 agency 赞助商,Showcase 展示需求旺盛)

无代码/低代码生态商业插件 (Framer/Webflow/Shopify 专版)

产品构想针对 Webflow、Framer 和 Shopify 等高端建站平台打造无缝集成的可视化平滑滚动与视差配置插件,解决非深度代码用户的使用门槛。
核心功能可视配置滚动阻尼与吸附速度;与 Webflow 交互无缝联动;Shopify 主题一键注入与冲突规避器。
目标用户UI/UX 设计师、Webflow/Framer 创作者、Shopify 高级电商店主。
难度/周期中等 · 1 个月 · 成本:极低(平台开发者账号费用)
收费模式应用商店月度订阅($9 - $29/月)或一次性买断授权。
竞争风险平台策略变更风险;需要针对第三方平台的前端运行时变化进行持续调试。
依据 数据支持的判断(官方 README 已提供 Framer 适配器与 No-code 章节,证明存在无代码受众)

WebGL/3D 滚动协同工程脚手架与企业技术支持

产品构想提供针对 Lenis + Three.js/R3F/GSAP 的性能诊断工具、工程脚手架样板代码(Boilerplate)与性能调优咨询服务。
核心功能掉帧与渲染性能瓶颈分析器;跨端(尤其是 iOS/低端安卓)触摸滚动对齐预设;企业级一对一调试与架构评审服务。
目标用户数字营销 Agency、高端品牌体验站制作团队、游戏/3D 展厅前端团队。
难度/周期高 · 2 - 3 个月 · 成本:低(以时间与技术经验投入为主)
收费模式高客单价企业技术咨询($1000 - $5000/次)或脚手架商业授权。
竞争风险咨询模式难以标准化扩张,严重依赖个人技术信誉与行业人脉。
依据 尚需验证的假设(企业是否愿意为滚动与 WebGL 协同的优化支付独立咨询费用)
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
darkroomengineering/satus 中文介绍暂未生成
Advanced Next.js App Router starter for content-driven sites
1,015 TypeScript
darkroomengineering/aniso 中文介绍暂未生成
Aniso is an open-source ASCII tool built by darkroom.enginee
460 JavaScript
darkroomengineering/tempus 中文介绍暂未生成
Use only one requestAnimationFrame for your whole app
355 TypeScript
darkroomengineering/hamo 中文介绍暂未生成
Hamo means hook, do the math.
319 TypeScript
darkroomengineering/elastica 中文介绍暂未生成
Physics engine for 2D rigid body collisions with React bindi
60 TypeScript
darkroomengineering/cc-settings 中文介绍暂未生成
Claude Code configuration — agents, skills, hooks & settings
52 TypeScript
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2022-02-21,近 30 天仍在推送,发布过 100 个 Release
社区活跃Star 17,212 / Fork 789 / Issue 40(数据支持,可自行核实)
许可证MIT
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。