1. @better-scroll/slide
a carousel effect triggered by BetterScroll
@better-scroll/slide
Package: @better-scroll/slide
Created by: ustbhuangyi
Last modified: Fri, 19 May 2023 10:27:09 GMT
Version: 2.5.1
License: MIT
Downloads: 18,582
Repository: https://github.com/ustbhuangyi/better-scroll

Install

npm install @better-scroll/slide
yarn add @better-scroll/slide

@better-scroll/slide

中文文档

The ability to inject a Carousel effect for BetterScroll.

Usage

 import BScroll from '@better-scroll/core'
import Slide from '@better-scroll/slide'
BScroll.use(Slide)

const bs = new BScroll('.div', {
  scrollX: false,
  scrollY: true,
  slide: {
    loop: true,
    threshold: 100
  },
  useTransition: true,
  momentum: false,
  bounce: false,
  stopPropagation: true
})

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin