Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/valnub/swiper-autoplay
- Owner: valnub
- License: mit
- Created: 2022-02-05T23:14:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-05T23:19:53.000Z (almost 3 years ago)
- Last Synced: 2024-04-16T05:52:42.309Z (9 months ago)
- Language: JavaScript
- Size: 148 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 */}
```