All Projects → smackgg → vue-scroll-lock

smackgg / vue-scroll-lock

Licence: other
一个 VUE 组件:子元素 scroll 父元素容器不跟随滚动(兼容PC、移动端)

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to vue-scroll-lock

JhScrollActionSheetView
JhScrollActionSheetView - UIcollectionView横向滚动,类似微博新版的详情页分享界面,可设置单排或双排显示,title不设置不显示title,如果想实现发送站内用户的功能,自己可以改一下代码
Stars: ✭ 13 (-58.06%)
Mutual labels:  scroll
vuejs-loadmore
A pull-down refresh and pull-up loadmore scroll component for Vue.js. Vue上拉加载下拉刷新组件
Stars: ✭ 62 (+100%)
Mutual labels:  scroll
onscroll-effect
A tiny JavaScript library to enable CSS animations when user scrolls.
Stars: ✭ 35 (+12.9%)
Mutual labels:  scroll
react-shadow-scroll
Component that customizes the list and inserts shadow when scrolling exists
Stars: ✭ 28 (-9.68%)
Mutual labels:  scroll
universalSmoothScroll
A cross-browser smooth-scrolling API which supports multiple and interruptable scroll-animations on all DOM's elements, even at the same time!
Stars: ✭ 46 (+48.39%)
Mutual labels:  scroll
vue-scrollwatch
scrollspy
Stars: ✭ 59 (+90.32%)
Mutual labels:  scroll
scrollRulerView
请使用 CYRuler (Please use CYRuler)
Stars: ✭ 31 (+0%)
Mutual labels:  scroll
NoobScroll
A lightweight jQuery Plugin that add some cool function to make scrolling more fun [Archive]
Stars: ✭ 43 (+38.71%)
Mutual labels:  scroll
vanillajs-scrollspy
ScrollSpy in pure JavaScript
Stars: ✭ 47 (+51.61%)
Mutual labels:  scroll
react-scroll-trigger
📜 React component that monitors scroll events to trigger callbacks when it enters, exits and progresses through the viewport. All callback include the progress and velocity of the scrolling, in the event you want to manipulate stuff based on those values.
Stars: ✭ 126 (+306.45%)
Mutual labels:  scroll
scroll-sync-react
A scroll syncing library for react that is up to date
Stars: ✭ 49 (+58.06%)
Mutual labels:  scroll
h5-vue-scroller
inspired by iNoBounce, stop your iOS webapp from bouncing around when scrolling and more.
Stars: ✭ 30 (-3.23%)
Mutual labels:  scroll
vue-scroll-progress
🎉 Page scroll progress bar component for @vuejs
Stars: ✭ 96 (+209.68%)
Mutual labels:  scroll
react-auto-scroll
Automatically scroll an element to the bottom
Stars: ✭ 28 (-9.68%)
Mutual labels:  scroll
scrollbox
A lightweight jQuery custom scrollbar plugin, that triggers event when reached the defined point.
Stars: ✭ 15 (-51.61%)
Mutual labels:  scroll
RollingNotice-Swift
滚动公告、广告,支持灵活自定义cell。淘宝、口碑、京东、美团、天猫等等一切滚动广告 Roll Notice or Advertising, customize cell as UITableViewCell supported, Swift version is also ready
Stars: ✭ 109 (+251.61%)
Mutual labels:  scroll
react-use-scroll-position
A react hook to use scroll position
Stars: ✭ 45 (+45.16%)
Mutual labels:  scroll
simple-scrollspy
Simple scrollspy without jQuery, no dependencies
Stars: ✭ 53 (+70.97%)
Mutual labels:  scroll
anim-event
Event Manager for Animation
Stars: ✭ 25 (-19.35%)
Mutual labels:  scroll
vue-scroll-snap
A super simple Vue component that allows fullscreen and horizontal scroll snapping.
Stars: ✭ 25 (-19.35%)
Mutual labels:  scroll

此方案已不是最优方案,不在维护!!!

vue 请移步 v-scroll-lock

react 请移步 react-scrolllock

vue-scroll-lock

一个 VUE 组件:子元素 scroll 父元素容器不跟随滚动(兼容PC、移动端)

【 React 请移步 react-scroll-lock-component

文档 & 例子

Document & Demo

使用

npm install vue-scroll-lock --save
// or
yarn add vue-scroll-lock
// main.js
import VueScrollLock from 'vue-scroll-lock'

Vue.use(VueScrollLock)

// ***.vue
<scroll-lock>
  <div class="content">
    // ...something
  </div>
</scroll-lock>
参数 描述 类型 可选值 默认值
lock 是否阻止父级滚动 Boolean true/false true
bodyLock 是否阻止body容器滚动 Boolean true/false false

贡献

欢迎 Star、PR

// install
npm install | yarn

// dev
npm run dev

THANKS

移动端的实现参考张鑫旭的web移动端浮层滚动阻止window窗体滚动JS/CSS处理

LICENSE

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].