01
SepSwiper is the most advanced free mobile touch slider with hardware accelerated transitions and amazing native behavior. It is designed to be used in mobile websites, mobile web apps, and mobile native/hybrid apps.
Swiper is not compatible with all platforms. It is a modern touch slider that is focused only on modern apps/platforms to bring the best experience and simplicity. You can view its demos here.
It has many amazing features:
You can install Swiper from Npm by running this command:
npm install swiper
After Installation, You have to add this code in your vue component.
<template>
<swiper
:slides-per-view="3"
:space-between="50"
@swiper="onSwiper"
@slideChange="onSlideChange"
>
<swiper-slide>Slide 1</swiper-slide>
<swiper-slide>Slide 2</swiper-slide>
<swiper-slide>Slide 3</swiper-slide>
...
</swiper>
</template>
<script>
// Import Swiper Vue.js components
import { Swiper, SwiperSlide } from 'swiper/vue';
// Import Swiper styles
import 'swiper/css';
export default {
components: {
Swiper,
SwiperSlide,
},
setup() {
const onSwiper = (swiper) => {
console.log(swiper);
};
const onSlideChange = () => {
console.log('slide change');
};
return {
onSwiper,
onSlideChange,
};
},
};
</script>
Here is the list of additional modules imports:
Swiper package contains different sets of CSS
, Less
, and SCSS
styles:
swiper/css
- only core Swiper stylesswiper/css/bundle
- all Swiper styles including all modules styles (like Navigation, Pagination, etc.)For Less styles replace css with less in imports paths, e.g.:
import 'swiper/less';
import 'swiper/less/navigation';
import 'swiper/less/pagination';
For SCSS styles replace css with scss in imports paths, e.g.:
import 'swiper/scss';
import 'swiper/scss/navigation';
import 'swiper/scss/pagination';
As you see, it is very straightforward to integrate Swiper into your website or application. You can also utilize Swiper with React, Angular, and Svelte. So if you want to dig more about it, you can visit its extensive documentation on its official website.
Published at : 01-09-2021
I am a highly results-driven professional with 12+ years of collective experience in the grounds of web application development especially in laravel, native android application development in java, and desktop application development in the dot net framework. Now managing a team of expert developers at Codebrisk.
Launch project