# vue-seamless-scroll **Repository Path**: grootbaby/vue-seamless-scroll ## Basic Information - **Project Name**: vue-seamless-scroll - **Description**: Vue.js 无缝滚动组件 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 6 - **Created**: 2019-11-12 - **Last Updated**: 2024-01-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-seamless-scroll > A simple, Seamless scrolling for Vue.js [ ](https://www.npmjs.com/package/vue-seamless-scroll) 
🐾online demo | 🌾 sample demo | 📘 中文文档
## Content - [**`Update log`**](#update-log) - [**`Browser support`**](#browser-support) - [**`Features`**](#features) - [**`Installation`**](#installation) - [**`Usage`**](#usage) - [**`ES6`**](#eS6) - [**`Normal use`**](#normal-use) - [**`Configure`**](#configure) - [**`Events`**](#events) - [**`Individual special configuration items`**](#individual-special-configuration-items) - [**`Changelog`**](#changelog) - [**`Issues solution`**](#issues-solution) - [**`Cares`**](#cares) - [**`Contribution`**](#contribution) ## Update log ### 1.1.17 Bug fix - The step attribute is set to a decimal point below 1 and scrolls up with a sway. - The offsetWidth is rounded off, causing the error to be calculated. The horizontal scrolling is not on one line, and a blank will appear. - If single-step scrolling is set, the step needs to be a single-numbered divisor, otherwise the position of the single-step scrolling end cannot be guaranteed. Configuration update - Added navigation configuration, whether the left and right scrolling shows the controller button. When the value is true, autoPlay automatically becomes false. ## Browser support | [
](http://godban.github.io/browsers-support-badges/)IE | [
](http://godban.github.io/browsers-support-badges/)Firefox | [
](http://godban.github.io/browsers-support-badges/)Chrome | [
](http://godban.github.io/browsers-support-badges/)Safari | [
](http://godban.github.io/browsers-support-badges/)iOS | [
](http://godban.github.io/browsers-support-badges/)Android |
|:---------:|:---------:|:---------:|:---------:|:---------:|:---------:|
| IE9+ | ✓| ✓ | ✓ | ✓ | ✓ | ✓
## Features
* [x] base on requestAnimationFrame.
* [x] the configuration meets a variety of requirements.
* [x] current support for seamless scrolling, single-step scrolling, and manual switching support for horizontal direction.
## Installation
### NPM
```bash
npm install vue-seamless-scroll --save
```
### CDN
`https://cdn.jsdelivr.net/npm/vue-seamless-scroll@1.1.17/dist/vue-seamless-scroll.min.js`
## Usage
### ES6
> [**`online demo`**](https://chenxuan0000.github.io/component-document/index_prod.html#/component/seamless-default)
```js
// **main.js**
// 1.global install
import Vue from 'vue'
import scroll from 'vue-seamless-scroll'
Vue.use(scroll)
//or you can set componentName default componentName is vue-seamless-scroll
Vue.use(scroll,{componentName: 'scroll-seamless'})
// 2.single .vue import
```
### Normal use
Example:
> Specific reference [test/test.html](https://github.com/chenxuan0000/vue-seamless-scroll/blob/master/test/test.html)
```html
...