Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/p-m-p/slider

A modern, light weight content slider
https://github.com/p-m-p/slider

carousel javascript react slider slideshow typescript

Last synced: 23 days ago
JSON representation

A modern, light weight content slider

Awesome Lists containing this project

README

        




Box Slider



A modern, light weight content slider



NPM Status
Build Status

## About

BoxSlider is a small library with zero dependencies that provides a light-weight, responsive content slider with
multiple slide transition effects for modern browsers.

The library can be used standalone or via React and web components. View the [website](https://philparsons.co.uk/slider/)
for full details.

## Installation

Install from NPM

```sh
npm install --save @boxslider/slider
```

Use from CDN

```html

import {
BoxSlider,
FadeSlider,
} from 'https://cdn.jsdelivr.net/npm/@boxslider/slider/+esm'

const slider = new BoxSlider(
document.getElementById('slider'),
new FadeSlider(),
)

```

### React

Install via NPM

```sh
npm install --save @boxslider/react
```

```tsx
import { SliderControls, CarouselSlider } from '@boxslider/react'

function MySlider({ children }) {
return (

{children}

)
}
```

View the [React guide](https://philparsons.co.uk/slider/docs/guides/react) for full details

### Web Components

Install via NPM

```sh
npm install --save @boxslider/components
```

Use from CDN

```html