stack-sticky
v1.0.3
Published
Auto-stack sticky elements across nested scroll contexts
Maintainers
Readme
stack-sticky
Auto-stack position: sticky elements across nested scroll containers.
Install
npm install stack-stickyUsage
import { stackSticky } from 'stack-sticky'
stackSticky()
stackSticky({
type: 'top',
root: document,
selector: '.position-sticky:visible, .sticky-top:visible',
offset: 0
})API
stackSticky(options?)
type:'top' | 'bottom' | 'left' | 'right', default'top'root:string | ParentNode, defaultdocumentselector:string, default.position-sticky:visible, .sticky-top:visibleoffset:number, default0
Development
pnpm install
pnpm dev
pnpm build
pnpm build:demo
pnpm lint
pnpm checkDemo Build
pnpm build:demo
pnpm previewPublish
pnpm login
pnpm build
pnpm publish --access public