Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-h5-swiper

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-h5-swiper

Slight vue slider component for H5 applications.

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

hero

Vue H5 Swiper

Slight vue slider component for H5 applications.

npm npm bundle size npm

Features

  • Slight, only has better-scroll dependency.
  • Support long content page.
  • A great diversity of paging animations.
  • Without fake element at loop mode.
  • Optimized displayed SwiperItem count.

Demos

Online demo: https://edgarallanzp.github.io/vue-h5-swiper/

Or

yarn dev

Installation

npm install vue-h5-swiper --save

# or use yarn
yarn add vue-h5-swiper
<template>
  <swiper>
    <swiper-item>
      ...
      Content Slot
      ...
    </swiper-item>
  </swiper>
</template>

<script>
import { Swiper, SwiperItem } from 'vue-h5-swiper';

export default {
  components: {
    Swiper,
    SwiperItem
  }
};
</script>

Documentation

Swiper

Props
PropDefaultDescription
loopfalseEnable loop mode.
show-indicatortrueDisplay indicators.
page-transition'move'Paging animation. Available animations: ['move', 'fade', 'cover', 'carousel', 'scale', 'glue', 'cube', 'push', 'three']
autoplayfalseAuto slide.
interval3000Auto slide interval.
Events
EventParamsDescription
beforeChangeactiveIndex, oldIndexBefore paging hook.
afterChangeactiveIndex, oldIndexAfter paging hook.
Methods
MethodDescription
moveTo(index)Move to the specified page.
next()Move to next page.
prev()Move to previous page.
Slots
SlotDescription
default---------For SwiperItem.
indicator-------Custom swiper indicator.

SwiperItem

Slots
SlotDescription
default---------For display content.

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

License

MIT

Copyright (c) 2019, Edgar Li

Keywords

FAQs

Package last updated on 03 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc