Socket
Book a DemoInstallSign in
Socket

@tenedev/marquee

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tenedev/marquee

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
0
Created
Source

@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:

npm i @tenedev/marquee

For detailed installation steps, check out the Getting Started guide.

Props

PropTypeDefaultDescription
childrenReactNodeThe content to be displayed in the marquee (e.g., text, images, components).
speednumber50The speed of the scrolling animation.
gapnumber10The gap (in pixels) between items in the marquee.

Example Usage

Here’s how to use the Marquee component:

import { Marquee } from "@tenedev/marquee";

<Marquee speed={75} gap={20}>
  <span>Item 1</span>
  <span>Item 2</span>
  <span>Item 3</span>
</Marquee>

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.

Keywords

marquee

FAQs

Package last updated on 04 Dec 2024

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