1. @better-scroll/indicators
used as parallax scrolling, magnifier effects
@better-scroll/indicators
Package: @better-scroll/indicators
Created by: ustbhuangyi
Last modified: Fri, 19 May 2023 10:27:06 GMT
Version: 2.5.1
Downloads: 10,136
Repository: https://github.com/ustbhuangyi/better-scroll

Install

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

@better-scroll/indicators

中文文档

Indicator can be used to achieve magnifying glass, parallax scrolling and other effects.

Usage

 import BScroll from '@better-scroll/core'
import Indicators from '@better-scroll/indicators'
BScroll.use(Indicators)

const bs = new BScroll('.wrapper', {
  indicators: [
    relationElement: someHTMLElement
  ]
})
 interface IndicatorOptions {
  interactive?: boolean
  ratio?: Ratio
  relationElementHandleElementIndex?: number
  relationElement: HTMLElement
}

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