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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@holmesdev/ponder-spinners

v1.0.30

Published

<div align="center"> <h1>Spinners & Animations React Components Library</h1> We built this so you can enhance your UI effortlessly! ✨ <br /> <br /> <a href="https://ponder-gold.vercel.app/" disabled>View Demo Site</a> · <br/> <br/>

Downloads

696

Readme

Fully Released 🚀 Team DBUG DINGOES from Holmesglen Ponder Spinners has crafted a set of animated SVG spinners and loading indicators, so you don’t have to spend time coding and debugging UI components from scratch. Enhance your app's loading experience with visually captivating components!

Spinner Components Animation

This library includes various React components for spinners and animations, helping you enhance your UI effortlessly using styled-components for animations and customizations.


Current Components 🛠️

| Name | Import Statement | Description | | -------- | ----------------------------------------------------- | ------------------------------------------------------------------------------ | | Spin | import {Spin} from "@holmesdev/ponder-spinners" | Rotating circular spinner with customizable speed, direction, and color. | | Dots | import {Dots} from "@holmesdev/ponder-spinners" | Sequentially jumping dots creating a wave-like loading effect. | | PulseBox | import {PulseBox} from "@holmesdev/ponder-spinners" | Morphing boxes that shift between squares and circles in a sequence. | | Wave | import {Wave} from "@holmesdev/ponder-spinners" | Animated wave with customizable size, colors, speed, and opacity. | | Circles | import {Circles} from "@holmesdev/ponder-spinners" | Animated set of morphing circles with customizable size, colors, and duration. |


Installation

To install and set up the library, run:


npm i @holmesdev/ponder-spinners

Or using Yarn:


npm yarn @holmesdev/ponder-spinners

[!IMPORTANT] > Styled-components is the JavaScript CSS library used to build our components. To ensure that they work as intended, you will need to separately install styled-components within both the devDependencies & peerDependencies inside of your package.json upon installation of the package.

You MUST also ensure that you are:

  • Using React.js v18.3.1 or higher
  • Using styled-components v6.1.13 or higher

Latest Package Version

| Name | Version | | :--------------------------------------------------------------------------------------: | :------------------------------------------------------: | | @holmesdev/ponder-spinners | NPM |


Usage

Spin

import { Spin } from "@holmesdev/ponder-spinners";

<Spin
  color1="#FF6F61"
  color2="#ffa9a1"
  opacity1={0.5}
  opacity2={1}
  speed="1s"
  direction="360deg"
  size={100}
/>;

Dots

import { Dots } from "@holmesdev/ponder-spinners";

<Dots color1="#22333B" color2="#FF6F61" color3="#B7AEA3" />;

Pulse Box

import { PulseBox } from "@holmesdev/ponder-spinners";

<PulseBox
  color1="#22333B"
  color2="#FF6F61"
  color3="#ffa9a1"
  color4="#22333B"
/>;

Wave

import { Wave } from "@holmesdev/ponder-spinners";

<Wave size={70} color1="#22333B" color2="#EAE0D5" speed="2s" opacity={1} />;

Circles

import { Circles } from "@holmesdev/ponder-spinners";

<Circles
  size={90}
  color1="#FF6F61"
  color2="#22333B"
  color3="#ffa9a1"
  duration={3}
/>;

Component Properties 📋

Spin

| Property | Type | Description | | ----------- | ------ | --------------------------------------------------------------- | | color1 | string | Color 1 of the circular spinner. Defaults to #FF6F61. | | color2 | string | Color 2 of the circular spinner. Defaults to #ffa9a1. | | opacity1 | number | Opacity of the color 1. Defaults to 1. | | opacity2 | number | Opacity of the color 2. Defaults to 0.5. | | speed | string | Speed of the rotation (e.g., 1s). Defaults to 1s. | | direction | string | Direction of rotation (e.g., 360deg). Defaults to -360deg. | | size | string | The size of the spinner (e.g., 100). Defaults to 100 |

Dots

| Property | Type | Description | | -------- | ------ | -------------------------------------------------- | | color1 | string | Color for the first dot. Defaults to "#22333B". | | color2 | string | Color for the second dot. Defaults to "#EAE0D5". | | color3 | string | Color for the third dot. Defaults to "#C6AC8F". |

Pulse Box

| Property | Type | Description | | -------- | ------ | -------------------------------------------------- | | color1 | string | Color for the first box. Defaults to "#22333B". | | color2 | string | Color for the second box. Defaults to "#FF6F61". | | color3 | string | Color for the third box. Defaults to "#ffa9a1". | | color4 | string | Color for the fourth box. Defaults to "#22333B". |

Wave

| Property | Type | Description | | --------- | ------ | ------------------------------------------------------- | | size | string | Size of the SVG (width and height). Defaults to 30px. | | color1 | string | Color for the first wave. Defaults to "#22333B". | | color2 | string | Color for the second wave. Defaults to "#EAE0D5". | | speed | string | Speed of the animation (e.g., 2s). Defaults to 2s. | | opacity | number | Opacity of the wave (0 to 1). Defaults to 1. |

Circles

| Property | Type | Description | | ---------- | ------ | ------------------------------------------------------------- | | size | number | Size of the circles. Defaults to 90. | | color1 | string | Color of the first circle. Defaults to "#FF6F61". | | color2 | string | Color of the second circle. Defaults to "#22333B". | | color3 | string | Color of the third circle. Defaults to "#ffa9a1". | | duration | number | Duration of the animation cycle in seconds. Defaults to 3s. |


Inspiration 💡

This library is inspired by various popular UI/UX components and spinners to ensure optimal user experience while loading content. Special thanks to the open-source community for their contributions to animated UI libraries.

Special Thanks 🎉

Our Mentors for guiding us through the development process; Alex, Amberle and Daniel

License

MIT License

Available for open-source consumption under MIT licensing. See MIT License for more information.