Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/p-m-p/slider
- Owner: p-m-p
- License: mit
- Created: 2012-05-23T13:04:30.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2024-10-10T06:59:21.000Z (about 1 month ago)
- Last Synced: 2024-10-11T09:01:40.263Z (about 1 month ago)
- Topics: carousel, javascript, react, slider, slideshow, typescript
- Language: TypeScript
- Homepage: https://philparsons.co.uk/slider/
- Size: 62.4 MB
- Stars: 874
- Watchers: 73
- Forks: 233
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
A modern, light weight content slider
## 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