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

elegant-smooth-slider

v1.0.5

Published

Image Slide Library

Downloads

56

Readme

Elegant Smooth Slider

npm

license

Elegant Smooth Slider is a customizable image slider component for React applications. It allows you to display an array of images with various details and provides a smooth sliding effect.

Component Preview

Table of Contents

Installation

You can install this package using npm:

npm install elegant-smooth-slider

Or using yarn

yarn add elegant-smooth-slider

Usage

import React from 'react';
import ElegantSmoothSlider from 'elegant-smooth-slider';

const data = [
    { 
        img: "https://elegant-smooth-slider/img1.jpg", 
        title: "Elegant Smooth Slider ", description: "Elegant Smooth Slider is a customizable image slider component", 
        link: "https://elegant-smooth-slider/" 
    },
    
];

const App = () => {
  return (
    <div>
      <ElegantSmoothSlider 
        slides={data}
        automatedSlides={true}      {* Slide automated or not *}
        automatedDelay= {3}   {* Delay time in seccond ( if you want)*}
        slideButtonBackground="#e6e6e6"
        slideButtonIconColor="#000000"
        slideButtonBackgroundHover="#cccccc"
        slideButtonIconColorHover="#333333"
        buttontype="primary"        {* 'primary'  or  'secondary' *}
        imageTint={true}
        slidArrowButton={true}
        slideContent={true}
        contentTitle={true}
        contentDescription={true}
        contentLink={true}
        contentTitleColor="#f0f0f0"
        contentDescriptionColor="#f0f0f0"
        linkButtonColor="#e6e6e6"
        linkButtonColorHover="#cccccc"
        linkButtonTextColor="#000000"
        linkButtonTextColorHover="#333333"
        subImages={true}            
        subImagePosition="bottom"        {* 'bottom'  ,  'center' , 'top' *}
      />
    </div>
  );
};

export default App;

ElegantSmoothSlider (Props)

|Name|Type|Default| Description| |:-|:-|:-|:-| |slides |array| NO Default| Array of slide items.| |automatedSlides |boolean |true |Whether slides should auto-slide (optional).| |automatedDelay |number| 3s| Delay od slide animation in seccond (optional).| |slideButtonBackground |string |#e6e6e6 |Background color of slide buttons (optional).| |slideButtonIconColor |string |#000000 |Icon color of slide buttons (optional).| |slideButtonBackgroundHover |string |#cccccc |Hover background color of slide buttons (optional).| |slideButtonIconColorHover |string |#333333 |Hover icon color of slide buttons (optional).| |buttontype |string |'primary' |Type of button ('primary' or 'secondary') (optional).| |imageTint |boolean |false |Whether images should have a tint (optional).| |slidArrowButton |boolean |true |Whether to show slide arrow buttons (optional).| |slideContent |boolean |true |Whether to display content (title, description) (optional).| |contentTitle |boolean |true |Whether to display the content title (optional).| |contentDescription |boolean |true |Whether to display the content description (optional).| |contentLink |boolean |true |Whether to display the content link (optional).| |contentTitleColor |string |#f0f0f0 |Color of the content title (optional).| |contentDescriptionColor |string |#f0f0f0 |Color of the content description (optional).| |linkButtonColor |string |#e6e6e6 |Background color of link buttons (optional).| |linkButtonColorHover |string |#cccccc |Hover background color of link buttons (optional).| |linkButtonTextColor |string |#000000 |Text color of link buttons (optional).| |linkButtonTextColorHover |string |#333333 |Hover text color of link buttons (optional).| |subImages |boolean |true |Whether to display sub-images (optional).| |subImagePosition |string |'bottom' |Position of sub-images ('bottom' , 'center' or 'top') (optional).|

Slide Items Types

|Key |Type |Default |Description| |:-|:-|:-|:-| |img |string |N/A |Image link| |title |string |N/A |Title of the slide (optional)| |description |string |N/A |Description of the slide (optional)| |link |string |N/A |URL link for the slide (optional)| |buttonName |string |See More |Name of the button (optional)| |titleColor |string |#e6e6e6 |Color of the title (optional)| |descriptionColor |string |#e6e6e6 |Color of the description (optional)|

Example Of Array Of Data

    [
        { 
            img: "https://elegant-smooth-slider/img1.jpg", 
            title: "Elegant Smooth Slider ", description: "Elegant Smooth Slider is a customizable image slider component", 
            link: "https://elegant-smooth-slider/",
            buttonName: "See More",
            titleColor: "#e6e6e6"
            descriptionColor: "#e6e6e6"
        },
        
    ];