# Infinite Scroll

> A smooth infinite scrolling component with customizable grid layout and image display.  Features  - Smooth scrolling animation powered by Lenis - Customizable grid layout (2-4 columns) - Adjustable scroll speed and behavior - Responsive image loading - Dark mode compatible - Multiple size variants - Customizable gaps and padding - Image repetition control

- Author: [Edil Ozi](https://21st.dev/@Edil-ozi)
- Library: [Edil Ozi](https://21st.dev/@Edil-ozi/library/edil-ozi)
- License: mit
- Tags: Infinite Scroll
- npm dependencies: @studio-freight/lenis, class-variance-authority
- Live preview: https://21st.dev/@Edil-ozi/components/infinite-scroll

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/Edil-ozi/infinite-scroll?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/infinite-scroll.md
