https://github.com/teneplaysofficial/marquee
@tenedev/marquee – Smooth, customizable scrolling elements for React.
https://github.com/teneplaysofficial/marquee
animation framer-motion library marquee npm-module react ui vitepress vitereact
Last synced: 5 months ago
JSON representation
@tenedev/marquee – Smooth, customizable scrolling elements for React.
- Host: GitHub
- URL: https://github.com/teneplaysofficial/marquee
- Owner: teneplaysofficial
- License: mit
- Created: 2024-12-02T15:52:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-23T12:24:03.000Z (over 1 year ago)
- Last Synced: 2025-09-13T16:55:06.552Z (10 months ago)
- Topics: animation, framer-motion, library, marquee, npm-module, react, ui, vitepress, vitereact
- Language: TypeScript
- Homepage: https://teneplaysofficial.github.io/marquee/
- Size: 194 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README




# @tenedev/marquee
`@tenedev/marquee` is a lightweight and easy-to-use React component library that enables smooth, customizable scrolling text effects in your web applications. Built with `framer-motion`, it offers a seamless animation experience, allowing you to create engaging dynamic content like announcements, news tickers, and promotional banners. With simple integration and flexible customization options, `@tenedev/marquee` is perfect for adding motion and attention-grabbing elements to your site.
---
### How Does Marquee Work?
The `Marquee` component scrolls text horizontally in a loop. It can be customized to scroll in either left-to-right or right-to-left directions. Powered by `framer-motion`, it offers seamless, high-performance animations with easy-to-use props to control the behavior.
### Why Use Marquee?
- **Engage Users**: Capture attention with dynamic, moving text—ideal for announcements, news tickers, or promotional banners.
- **Customizable**: Adjust the scroll direction, speed, and content, making it suitable for various use cases.
- **Smooth Animations**: With `framer-motion`, `@tenedev/marquee` provides smooth, responsive scrolling effects that enhance the user experience.
### Installation
To get started with `@tenedev/marquee`, install the package and set up your React app:
```bash
npm i @tenedev/marquee
```
For detailed installation steps, check out the [Getting Started guide](https://teneplaysofficial.github.io/marquee/getting-started).
### Props
| Prop | Type | Default | Description |
| ---------- | ----------- | ------- | ---------------------------------------------------------------------------- |
| `children` | `ReactNode` | — | The content to be displayed in the marquee (e.g., text, images, components). |
| `speed` | `number` | `50` | The speed of the scrolling animation. |
| `gap` | `number` | `10` | The gap (in pixels) between items in the marquee. |
## Example Usage
Here’s how to use the `Marquee` component:
```tsx
import { Marquee } from "@tenedev/marquee";
Item 1
Item 2
Item 3
```
### Notes
- Ensure `framer-motion` is installed since it is a peer dependency.
- The `speed` prop determines the animation duration.
- The `gap` prop adjusts spacing between child elements.