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

carefree-carousel

v1.0.11

Published

A click-based carousel that you can run carefree.

Downloads

4

Readme

carefree-carousel

A click-based carousel (run it care-free).


GitHub Workflow Status npm npm bundle size GitHub npm GitHub Repo stars


Installing

npm install carefree-carousel


Importing usage

  1. import Carousel from 'carefree-carousel';

  2. var Carousel = require('carefree-carousel');

    • If the above are not working or fitting your specific use-case try one of the other bundle versions by explicit import/require
    • (Example) import Carousel from 'carefree-carousel/dist/bundle.min.js'

Demo

https://user-images.githubusercontent.com/88824507/134108105-acd1dc0d-30f6-4e6f-a83a-71b97109b001.mov

This is how the parameters were loaded for the video above

<Carousel toggleDots={false} slideText={false} toggleNav={false} startIndex={0} delayTime={4000} />

The content array expects either a valid React element or a valid image string.

content={[<div>An element</div>, "a-image-link-here", "other-image-link", <p>a new element</p>]}

The navImg array expects two valid image strings in the following order

navImg={["image-for-left-arrow-here", "image-for-right-arrow-here"]}

Features

  1. Preloading images
  2. Transitioning effect between images
  3. Error checking for correct types (Will display an error message)

Documentation

| Parameter | Type | Default value(s) | Trigger action
|:------------: |:-----:|:------------------:|:------------------------: | autoPlay | bool | false | Toggle On/Off auto-play between slides | | | |
| content | array | Provided 3 images | Add custom images or elements for each slide | | | |
| delayTime | int | 3 seconds | Change the time between each slide | | | | | navImg | arrayOfStrings | Provided 2 images | Add custom images for pagination arrows | | | | | slideText | bool | true | Toggle displaying On/Off of current slide # | | | | | startIndex | int | 0 | Choose which slide to begin playback on
| | | | | toggleDots | bool | false | Toggle displaying dots navigation On/Off | | | | | toggleNav | bool | true | Toggle displaying arrows navigation On/Off


Image references

Thank you to Unsplash for image hosting and individual contributors for uploading their images:


Badges

Thank you to shields.io for the templates they have provided.


Dependency authors

Thank you to all dependency library authors, make sure to check them out if you get the chance.