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 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-manga-effects

v0.1.8

Published

Lightweight React components for manga/anime-style visual effects - iris wipes and speed lines

Readme

🎬 react-manga-effects

Add dramatic anime/manga impact effects to your React applications with zero fuss.

npm license size CI

react-manga-effects provides lightweight, customizable high-impact visual effects common in anime and manga, such as circular iris wipes and dynamic focus lines. Built with TypeScript and optimizing for performance.

Demo

Demo

Features

  • 🌀 IrisWipe: Classic anime-style circular transition to open/close scenes.
  • ⚡ SpeedLines: Dynamic focus/concentration lines (motion lines) to emphasize action or shock.
  • 📘 TypeScript Support: Fully typed props and exports.
  • 🎈 Lightweight: Zero runtime dependencies (other than React).
  • 🚀 SSR Compatible: Works with Next.js, Remix, and Gatsby.
  • 🎨 Highly Customizable: Control colors, density, speed, easing, and positioning.

Installation

npm install react-manga-effects
# or
yarn add react-manga-effects
# or
pnpm add react-manga-effects

Quick Start

Import the components and use them in your React app:

import React, { useState } from 'react';
import { IrisWipe, SpeedLines } from 'react-manga-effects';

const App = () => {
    const [isOpen, setIsOpen] = useState(true);

    return (
        <div style={{ width: '100vw', height: '100vh', position: 'relative' }}>
            {/* Background Content */}
            <img src="/my-manga-scene.jpg" alt="Scene" style={{ width: '100%', height: '100%', objectFit: 'cover' }} />

            {/* Overlay Effects */}
            <SpeedLines 
                animated 
                color="rgba(0,0,0,0.5)" 
                center={{ x: 50, y: 50 }} 
            />

            <IrisWipe 
                isOpen={isOpen} 
                duration={1000} 
                center={{ x: 50, y: 50 }}
                onComplete={() => console.log('Transition Complete')}
            >
                {/* Content to be revealed/hidden inside the wipe can go here if needed, 
                    typically IrisWipe is used as an overlay. */}
            </IrisWipe>
            
            <button 
                onClick={() => setIsOpen(!isOpen)}
                style={{ position: 'absolute', bottom: 20, left: 20, zIndex: 100 }}
            >
                Toggle Transition
            </button>
        </div>
    );
};

export default App;

Components API

IrisWipe

A circular masking transition effect.

| Prop | Type | Default | Description | |------|------|---------|-------------| | isOpen | boolean | Required | true to reveal content (open iris), false to hide (close iris). | | duration | number | 500 | Animation duration in milliseconds. | | center | { x: number, y: number } | { x: 50, y: 50 } | Center point of the iris in percentage (0-100). | | easing | string | 'easeInOut' | CSS transition timing function (e.g., 'linear', 'ease-out', 'cubic-bezier(...)'). | | onComplete | () => void | undefined | Callback function fired when the transition finishes. | | className | string | '' | Additional CSS classes for the container. | | style | CSSProperties | {} | Inline styles for the container. |

Example: Custom Center

<IrisWipe 
  isOpen={show} 
  center={{ x: 80, y: 20 }} // Focus on top-right
  duration={1200}
/>

SpeedLines

Concentration lines typically used to show speed, shock, or intense focus.

| Prop | Type | Default | Description | |------|------|---------|-------------| | lineCount | number | 60 | Number of lines to draw. Higher values create a denser effect. | | color | string | 'rgba(0, 0, 0, 0.6)' | Color of the lines. Supports valid CSS colors. | | minLength | number | 10 | Minimum length of lines as a percentage of the container size. | | maxLength | number | 30 | Maximum length of lines as a percentage of the container size. | | innerRadius | number | 0 | Radius of the empty safe zone in the center (percentage). | | center | { x: number, y: number } | { x: 50, y: 50 } | The convergence point of the lines. | | animated | boolean | false | If true, lines will animate (opacity pulse/shake). | | animationSpeed| number | 1 | Speed multiplier for the animation. | | className | string | '' | Additional CSS classes. | | style | CSSProperties | {} | Inline styles. |

Example: Intense Action

<SpeedLines 
  lineCount={120} 
  color="red" 
  innerRadius={10} 
  animated={true}
  animationSpeed={1.5}
/>

Storybook

We use Storybook for development and testing.

  1. Clone the repository
  2. Install dependencies: npm install
  3. Run Storybook:
    npm run storybook
  4. Open http://localhost:6006 to view the components.

Development

Contributions are welcome!

  1. Clone the repo:

    git clone https://github.com/erutobusiness/react-manga-effects.git
    cd react-manga-effects
  2. Install dependencies:

    npm install
  3. Start development server (Storybook):

    npm run storybook

License

MIT © erutobusiness