npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@charlie404/marquee-text

v1.0.0

Published

A web component for creating smooth text marquee effects

Readme

@charlie404/marquee-text

A lightweight web component for creating smooth text marquee effects with customizable speed, font size, and direction. Display words from a comma-separated string with responsive typography.

Installation

npm install @charlie404/marquee-text

Usage

Import the component

import { MarqueeText } from "@charlie404/marquee-text";

new MarqueeText();

Add to your HTML

<!-- Example with all props specified -->
<marquee-text
  words="Hello, World, Lorem, Ipsum, Dolor, Sit, Amet"
  speed="100"
  desktop-margin="20"
  tablet-margin="15"
  mobile-margin="10"
  desktop-font-size="48"
  tablet-font-size="36"
  mobile-font-size="24"
  repeat="20"
  reverse
>
</marquee-text>

<!-- Example using cascade (tablet inherits from desktop, mobile from tablet) -->
<marquee-text
  words="Creative, Design, Development, Innovation"
  speed="100"
  desktop-margin="25"
  desktop-font-size="60"
  mobile-font-size="30"
  repeat="15"
>
</marquee-text>

<!-- Minimal example (all margins and font-sizes inherit from desktop) -->
<marquee-text 
  words="Simple, Clean, Elegant" 
  desktop-margin="30" 
  desktop-font-size="40"
>
</marquee-text>

Required CSS

Add this CSS to your stylesheet for proper display:

marquee-text {
  display: block;
  width: 100%;
}

Attributes

| Attribute | Type | Default | Description | | --------------------- | ------- | ------------------- | -------------------------------------------------------- | | words | string | "" | Comma-separated list of words to display | | speed | number | 100 | Animation speed in pixels per second | | desktop-margin | number | 20 | Spacing between words on desktop devices (≥ 1024px) | | tablet-margin | number | desktop-margin | Spacing between words on tablet devices (768px - 1023px) | | mobile-margin | number | tablet-margin | Spacing between words on mobile devices (< 768px) | | desktop-font-size | number | 48 | Font size in pixels on desktop devices (≥ 1024px) | | tablet-font-size | number | desktop-font-size | Font size in pixels on tablet devices (768px - 1023px) | | mobile-font-size | number | tablet-font-size | Font size in pixels on mobile devices (< 768px) | | repeat | number | 10 | Number of times to repeat the word sequence | | reverse | boolean | false | Reverse the animation direction |

Cascade Logic:

  • If tablet-margin is not specified, it defaults to desktop-margin
  • If mobile-margin is not specified, it defaults to tablet-margin
  • If tablet-font-size is not specified, it defaults to desktop-font-size
  • If mobile-font-size is not specified, it defaults to tablet-font-size

The marquee height is automatically calculated based on the current font size (font-size × 1.5).

License

MIT