
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
smooth-motion
Advanced tools
React smooth scroll and animation component powered by Framer Motion. Lightweight, fluid, customizable, TypeScript-ready, and perfect for modern web apps and UI design.
Author: Thinakaran Manokaran · https://thinakaran.dev
smooth-motion is a lightweight React smooth scroll component powered by Lenis. It enables fluid, speed-controllable scroll effects with zero external CSS, working seamlessly in both JavaScript (JSX) and TypeScript (TSX) projects.
Ideal for modern UI/UX, landing pages, portfolios, and apps that need silky smooth scrolling animations with minimal setup.
speed)Install with your favorite package manager:
npm install smooth-motion
# or
yarn add smooth-motion
# or
pnpm add smooth-motion
import React from "react";
import { UseSmoothScroll } from "smooth-motion";
export default function App() {
return (
<>
<UseSmoothScroll speed={1.5} />
<div style={{ height: 3000 }}>
<h1>Hello from UseSmoothScroll (JSX)</h1>
</div>
</>
);
}
import React from "react";
import { UseSmoothScroll } from "smooth-motion";
const App: React.FC = () => {
return (
<>
<UseSmoothScroll speed={2} />
<div style={{ height: 3000 }}>
<h1>Hello from UseSmoothScroll (TSX)</h1>
</div>
</>
);
};
export default App;
| Prop | Type | Default | Description |
|---|---|---|---|
speed | number | 1 | Controls scroll speed (higher = faster) |
✅ One package, dual compatibility, zero friction.
npm installnpm run buildnpm link or npm packThis project is licensed under the MIT License — see the LICENSE file.
FAQs
React smooth scroll and animation component powered by Framer Motion. Lightweight, fluid, customizable, TypeScript-ready, and perfect for modern web apps and UI design.
We found that smooth-motion demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.