New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@wellspr/slider

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wellspr/slider

Create sliders easy end fast. Currently available is an infinite slider component. You must pass an array of components that will slide through the slider pane. Each time one component goes out of the

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
0
Created
Source

Slider

Create sliders easy end fast. Currently available is an infinite slider component. You must pass an array of components that will slide through the slider pane. Each time one component goes out of the

install

npm install @wellspr/slider

Usage

You must provide an array containing the react components that are intended to enter the slide.

import { InfiniteSlider } from "@wellspr/slider";

const App = () => {

const arr = [ <ComponentA />, <ComponentB />, ..., <ComponentN /> ];

return <InfiniteSlider
   	arr={arr}
	className="slider"
	translationStep="20rem"
	interval={3000}
	transitionDelay={1000}
   />
}

You can pass a classname to style the slider component. There is a required prop, translationStep, which tells slider by how much it will translate each time. Set this translationStep to equal to the width of each component. Also you can set interval, the interval between each iteration, and transitionDelay, the actual delay between each iteration.

  • translationStep (string): The size of each individual translation of the slider;
  • interval (number): The interval between each subsequent translation (given in miliseconds);
  • transitionDelay (number): The transition delay imposed on the translation (given in miliseconds).

Example

Demo app

FAQs

Package last updated on 08 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts