New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

smooth-motion

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smooth-motion

React smooth scroll and animation component powered by Framer Motion. Lightweight, fluid, customizable, TypeScript-ready, and perfect for modern web apps and UI design.

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

smooth-motion

npm version npm downloads TypeScript License: MIT

Author: Thinakaran Manokaran · https://thinakaran.dev

🌟 Overview

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.

✨ Features

  • 🚀 Smooth Lenis-powered scroll animations
  • Lightweight and dependency-friendly
  • 🔧 Fully customizable via props (speed)
  • 📦 Out-of-the-box support for JSX & TSX
  • 🎨 No extra CSS — just clean, declarative React
  • 🛡️ TypeScript typings included

📦 Installation

Install with your favorite package manager:

npm install smooth-motion
# or
yarn add smooth-motion
# or
pnpm add smooth-motion

🚀 Usage Examples

JavaScript (JSX)

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>
    </>
  );
}

TypeScript (TSX)

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;

⚙️ Props

PropTypeDefaultDescription
speednumber1Controls scroll speed (higher = faster)

💡 Why Choose smooth-motion?

  • Works with React 17+ and React 19
  • TypeScript-ready — zero config required
  • Minimal footprint, fast performance
  • Perfect for landing pages, portfolios, and apps
  • Designed for developers who love smooth UI animations

✅ One package, dual compatibility, zero friction.

🛠️ Development & Contribution

  • Clone the repo
  • Install dependencies: npm install
  • Build the package: npm run build
  • Test locally via npm link or npm pack
  • Open an issue or PR to contribute 🚀

📜 License

This project is licensed under the MIT License — see the LICENSE file.

Keywords

react

FAQs

Package last updated on 06 Sep 2025

Did you know?

Socket

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.

Install

Related posts