Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/valnub/swiper-autoplay

A quick demo which shows how to use the autoplay feature in Swiper React
https://github.com/valnub/swiper-autoplay

Last synced: 30 days ago
JSON representation

A quick demo which shows how to use the autoplay feature in Swiper React

Awesome Lists containing this project

README

        

# Swiper React Autoplay Demo

Just a quick demo how to use autoplay feature in Swiper React.

## How to run

```
$ npm install
$ npm run build && npm start
```

## In a nutshell

Assuming you already have your swiper up and running, add this to turn on autoplay:

### Add imports

```javascript
import { Autoplay } from 'swiper';
import 'swiper/css/autoplay';
```

### Create jsx

```jsx

{/* Add slides here */}

```