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-cssfx-loading

v3.0.1

Published

React wrapper for the CSSFX loading collection

Readme

🎨 React CSSFx Loading

Beautiful, lightweight loading animations for React - because users deserve delightful waiting experiences! ✨

Transform your loading states from boring to brilliant with this carefully curated collection of CSS-powered animations. Built as a React wrapper for the stunning CSSFx collection, this package brings you 14 gorgeous loading components that are both performant and pixel-perfect.

✨ Why Choose React CSSFx Loading?

  • 🚀 Lightweight & Fast - Pure CSS animations with zero JavaScript overhead
  • 🎯 Tree-shakable - Import only what you need to keep bundles small
  • 🎨 Highly Customizable - Colors, sizes, timing - make it yours!
  • 📱 Responsive Ready - Looks great on every device
  • Accessible - Respects user preferences for reduced motion
  • 🔧 TypeScript Support - Full type safety out of the box

🎬 See It In Action

Preview

👀 Live Examples

🚀 Quick Start

Get up and running in seconds! Install with your favorite package manager:

# npm
npm install react-cssfx-loading

# yarn  
yarn add react-cssfx-loading

# pnpm
pnpm add react-cssfx-loading

# bun
bun add react-cssfx-loading

💫 Usage

It's as simple as import and drop! Here's how to get started:

import { BarWave } from "react-cssfx-loading";

// 🎯 Simple and clean
<BarWave />

// 🎨 Make it your own
<BarWave 
  color="#6366f1" 
  width="80px" 
  height="60px" 
  duration="2s" 
/>

// 🔧 Full HTML support - it's just a div with superpowers!
<BarWave 
  onClick={() => console.log("Loading animation clicked!")} 
  className="my-spinner"
  style={{ margin: "auto" }}
  aria-label="Loading content..."
/>

🎛️ Props & Customization

Every component is built with flexibility in mind. Here's what you can customize:

| Prop | Type | Default | Description | |------|------|---------|-------------| | color | string | #0d6efd | 🎨 Animation color - any valid CSS color | | width | string | varies | 📏 Component width (e.g., "50px", "3rem") | | height | string | varies | 📐 Component height (e.g., "50px", "3rem") | | duration | string | 1s | ⏱️ Animation speed (e.g., "2s", "500ms") | | className | string | - | 🏷️ Additional CSS classes | | style | CSSProperties | - | 💅 Inline styles object | | ...rest | HTMLDivElement | - | 🔧 All standard HTML div attributes |

🎨 Component Gallery

Choose from 14 beautifully crafted loading animations:

🌊 Motion & Flow

  • BarWave - Elegant wave motion
  • BouncingBalls - Playful bouncing spheres
  • FadingBalls - Smooth fade transitions
  • FadingDots - Subtle dot sequence

🔄 Rotational

  • CircularProgress - Classic progress circle
  • Coin - Charming coin flip effect
  • Hypnosis - Mesmerizing spiral
  • Ring - Clean rotating ring
  • Spin - Simple rotation
  • TwinSpin - Dual rotation magic

📦 Geometric

  • FlippingSquare - Dynamic square flip
  • SpinStretch - Stretching rotation
  • FillingBottle - Liquid fill animation
  • Messaging - Chat bubble effect

🤝 Contributing

We love contributions! Feel free to:

  • 🐛 Report bugs
  • 💡 Suggest new animations
  • 🔧 Submit pull requests
  • ⭐ Star the repo if you find it helpful!

📄 License

MIT © napthedev


Made with ❤️ for the React community

Making loading states delightful, one animation at a time