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

kzu-slider

v0.2.0

Published

Image and video slider component for React.js

Downloads

2

Readme

Description

An image - video ( youtube ) slider component for React.js
KzuSlider is a responsive and lightweight infinite slider - carousel component for React.

Demo

See Demo: Here

Installation

npm i kzu-slider

Usage

import KzuSlider from "kzu-slider";

<KzuSlider
  slides={[
    {
      // simple image slide
      background: "imageUrl.jpeg",
      title: "Slide Title",
      subtitle: "Slide Subtitle",
      content: "Slide text content ...",
      buttons: [
        {
          title: "Single Button",
          onClick: () => {
            alert("Clicked Single Button");
          },
          color: "rgba(0,0,055,0.5)",
          textColor: "#ffffff"
        }
      ],
      contentColor: "#323232",
      contentBg: "rgba(255,255,255,0.6)",
      shades: [
        {
          from: "rgba(0, 100, 200, 0.5)",
          to: "rgba(122,234,189,0.5)",
          angle: 90
        }
      ]
    },
    {
      //youtube background
      youtubeKey: "jHbLGYBwiuo",
      //mute: false,
      videoSize: 210,
      title: "Youtube Background",
      content: "Video Background is used with zoom and shades.",
      shades: [
        {
          from: "rgba(255, 0, 255, 0.5)",
          to: "rgba(255, 255, 255, 0.5)",
          angle: 45
        }
      ]
    }
  ]}
/>

Slider Props

All props are optional, if not specified, default values will be applied.

! Parallax effect is cancelled in this release due to performance and mobile issues

height, can be "full" (string) or a number {500} representing height in px (default height is 500px ).
parallax, boolean fixed background images.
auto , boolean slider runs automatically, stops on mouse hover.
duration, number representing slide duration in ms (default is 6000).
contentPadding, object as: { left: 80, right: 80, top: 64, bottom: 64 } defines padding of the box containing text contents. ( top and bottom paddings will make the box bigger whereas left - right padding will not effect width ).
contentWidth, number ( like 75 ) representing width in % of the box containing text contents ( title, subtitle, content and buttons ).
hideArrows, boolean hides navigation arrows.
hideDots, boolean hides navigation dots.
transition, number representing transition duration in ms (default is 1000).
slides, array of objects containing information on all slides. disableTouch, boolean disables touch slide effects on mobile.

Slide properties

background, string image Url.
title, string Slide Title.
subtitle, string Slide Subtitle.
content, string Slide Text Content.
buttons, array of objects Example:

[
  {
    title: "Single Button",
    onClick: () => {
      alert("Clicked Single Button");
    },
    color: "rgba(0,0,055,0.5)",
    textColor: "#ffffff"
  }
]

contentColor, string color value like "#ffffff" or "rgba(255,255,255,0.5)" representing text color.
contentBg, string color value like "#ffffff" or "rgba(255,255,255,0.5)" representing text background box color.
shades, array of objects representing linear gradients over background image or video, Example:

 [
  {
    from: "rgba(0, 100, 200, 0.5)",
    to: "rgba(122,234,189,0.5)",
    angle: 90
  }
]

youtubeKey, string youtube key in the url of youtube video.
mute, boolean by default video is muted, enter false to get sound.
videoSize, number a number bigger than 100 ( as % ) to make the video bigger in size.

Author

Murat Yılmaz (kzutronic)

Licence

kzu-slider is licenced under MIT Licence