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

react-animated-highlighter

v1.1.0

Published

Animated text highlighter component for React with GSAP animations

Readme

React Animated Highlighter

An animated text highlighter component for React with smooth GSAP animations. Perfect for hero sections, landing pages, and attention-grabbing text effects.

Demo

npm version

Features

  • Smooth GSAP-powered animations
  • Highlighter icon that "draws" across your text
  • Fully customizable colors, timing, and opacity
  • Replay animation on hover option
  • TypeScript support
  • Zero external icon dependencies

Installation

npm install react-animated-highlighter gsap

Quick Start

import { AnimatedHighlighter } from 'react-animated-highlighter';

function App() {
  return (
    <h1>
      Welcome to <AnimatedHighlighter text="My Website" />
    </h1>
  );
}

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | text | string | required | The text to highlight | | color | string | '#6ca0dc' | Highlight color | | fontSize | string | '30px' | Font size of the text | | className | string | '' | Additional CSS class | | showIcon | boolean | true | Show the highlighter icon during animation | | highlightOpacity | number | 0.3 | Opacity of the highlight (0-1) | | duration | number | 1.5 | Animation duration in seconds | | delay | number | 0 | Delay before animation starts | | replayOnHover | boolean | false | Replay the animation on hover |

Examples

Custom Color

<AnimatedHighlighter
  text="Important!"
  color="#f59e0b"
/>

Slower Animation

<AnimatedHighlighter
  text="Take your time"
  duration={3}
  delay={0.5}
/>

No Icon, Just Highlight

<AnimatedHighlighter
  text="Subtle highlight"
  showIcon={false}
  highlightOpacity={0.2}
/>

Interactive (Replay on Hover)

<AnimatedHighlighter
  text="Hover me!"
  replayOnHover={true}
/>

Hero Section Example

<h1 className="text-5xl font-bold">
  Ship products with{' '}
  <AnimatedHighlighter
    text="zero friction"
    color="#10b981"
    fontSize="inherit"
    duration={2}
  />
</h1>

Color Ideas

| Color | Hex | Use Case | |-------|-----|----------| | Blue | #6ca0dc | Default, professional | | Emerald | #10b981 | Success, growth | | Amber | #f59e0b | Warning, attention | | Rose | #f43f5e | Important, urgent | | Purple | #8b5cf6 | Creative, premium |

Requirements

  • React 17+
  • GSAP 3+ (peer dependency)

AI Assistant Integration

This package includes a CLAUDE.md file with detailed instructions for AI coding assistants (Claude, GPT, Copilot, etc.). When you ask an AI to integrate this package into your project, it can read these instructions to provide accurate, copy-paste ready code.

The AI instructions cover:

  • Quick setup examples
  • All props with descriptions
  • Integration with Framer Motion
  • Recommended color palettes
  • Common patterns for hero sections, landing pages, etc.

License

MIT © Ben Jammin