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

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code