
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
github.com/chenxuan0000/vue-seamless-scroll
Advanced tools
A simple, Seamless scrolling for Vue.js
🐾online demo | 🌾 sample demo | 📘 中文文档
Browser supportFeaturesInstallationUsage
ConfigureIndividual special configuration itemsChangelogCaresContribution![]() IE | ![]() Firefox | ![]() Chrome | ![]() Safari | ![]() iOS | ![]() Android |
|---|---|---|---|---|---|
| IE9+ | ✓ | ✓ | ✓ | ✓ | ✓ |
npm install vue-seamless-scroll --save
https://cdn.jsdelivr.net/npm/vue-seamless-scroll@1.1.10/dist/vue-seamless-scroll.min.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
<script>
import vueSeamless from 'vue-seamless-scroll'
export default {
components: {
vueSeamless
}
}
</script>
Example:
Specific reference test/test.html
<html>
<head>
...
</head>
<body>
<div id="app">
<vue-seamless-scroll></vue-seamless-scroll>
</div>
<script src="vue.js"></script>
<script src="vue-seamless-scroll"></script>
<script>
new Vue({
el: '#app'
})
</script>
</body>
</html>
| key | description | default | val |
|---|---|---|---|
step | the faster the rolling speed is faster | 1 | Number |
limitMoveNum | start seamless scrolling minimum data length | 5 | Number |
hoverStop | mouse hover control is enabled | true | Boolean |
direction | 0 down、 1 up 、 2 left 、 3 right | 1 | Number |
openTouch | open mobile touch | true | Boolean |
singleHeight | one single stop height(default zero is seamless) => direction 0/1 | 0 | Number |
singleWidth | one single stop width(default zero is seamless) => direction 2/3 | 0 | Number |
waitTime | one single data stop wait time(ms) | 1000 | Number |
switchOffset | the left and right buttons distance from the left and right sides (px) | 30 | Number |
autoPlay | whether or not to automatically play the switch needs to be set to false | true | Boolean |
switchSingleStep | the size of a single step switch (px) | 134 | Number |
switchDelay | the animation time of a single step switch(ms) | 400 | Number |
switchDisabledClass | the className of the switch parent element that cannot be clicked | disabled | String |
isSingleRemUnit | singleHeight and singleWidth Whether to enable the rem metric | false | Boolean |
1.The outermost container needs to be set manually
width height overflow:hidden
2.The left and right seamless rolling needs to be set for the main content area (that is, the default slot slots)
css width(otherwise, the actual width cannot be calculated correctly)
3.The step value is not recommended to be too small, otherwise there will be carton effect.
4.You need to set when you need to manually switch left and right to scroll
autoPlay:false,(The loop is not currently supported.)
5.Provides
slot left-switch || right-switchyou can freely define the button styles you want. The outer div is positioned in the middle,the distance from both sides can be adjusted by the switchOffset parameter.
6.When the button reaches the boundary position, it automatically adds a definition to the state button that cannot be clicked.
switchDisabledClass: 'disabled',you can configure it as needed.
See the GitHub release history.
If you want js to scroll seamlessly (without dependencies) you can switch to here.seamscroll。
Welcome to give some Suggestions and optimizations, and look forward to your Pull Request.
vue-seamless-scroll is open source and released under the MIT License.
FAQs
Unknown package
Did you know?

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.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.