All Projects → Binaryify → vue-custom-scrollbar

Binaryify / vue-custom-scrollbar

Licence: MIT License
Minimalistic but perfect custom scrollbar component for Vue.JS

Programming Languages

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

Projects that are alternatives of or similar to vue-custom-scrollbar

Vue2 Scrollbar
The Simplest Pretty Scroll Area Component with custom scrollbar for Vue 2. https://bosnaufal.github.io/vue2-scrollbar
Stars: ✭ 233 (+145.26%)
Mutual labels:  scrollbar
scrollpup.js
Minimal beautiful bar to show scroll progress. Pure Javascript Plugin.MIT
Stars: ✭ 83 (-12.63%)
Mutual labels:  scrollbar
scrollbar-width
Lightweight tool to get browser's scrollbars width of any browser.
Stars: ✭ 25 (-73.68%)
Mutual labels:  scrollbar
react-is-scrolling
Simply detect if users are scrolling in your components in a declarative API
Stars: ✭ 17 (-82.11%)
Mutual labels:  scrollbar
ngx-malihu-scrollbar
Angular 2+ scrollbar customization using Malihu jQuery Custom Scrollbar plugin
Stars: ✭ 59 (-37.89%)
Mutual labels:  scrollbar
handy-scroll
Handy dependency-free floating scrollbar widget
Stars: ✭ 15 (-84.21%)
Mutual labels:  scrollbar
V Bar
The virtual responsive crossbrowser scrollbar component for VueJS 2x
Stars: ✭ 216 (+127.37%)
Mutual labels:  scrollbar
vim-sclow
👾 Text-based scrollbar for Vim
Stars: ✭ 23 (-75.79%)
Mutual labels:  scrollbar
scrolly.js
Scrolly: fast vanilla JS scrollbar plugin with React.js Component & jQuery/Zepto/jBone plugin.
Stars: ✭ 18 (-81.05%)
Mutual labels:  scrollbar
vue-scrolly
Overlay scrollbar for Vue.js.
Stars: ✭ 24 (-74.74%)
Mutual labels:  scrollbar
react-scroll-locky
📜🔒 – React full-cream "anti-scroll" library, you were looking for
Stars: ✭ 55 (-42.11%)
Mutual labels:  scrollbar
esl
Lightweight and flexible UI component library based on web components technology for creating basic UX modules
Stars: ✭ 53 (-44.21%)
Mutual labels:  scrollbar
floating-scroll
Lightweight jQuery plugin providing floating scrollbar functionality
Stars: ✭ 72 (-24.21%)
Mutual labels:  scrollbar
Slim Scroll
HTML element scroll bar as replacement for default browser's scroll-bar. Design as you want using CSS.
Stars: ✭ 251 (+164.21%)
Mutual labels:  scrollbar
Fluent-Design
Microsoft's Fluent Design with pure HTML/CSS/JS
Stars: ✭ 36 (-62.11%)
Mutual labels:  scrollbar
React Scroll Shadow
Pure CSS shadow to indicate more content in scrollable area
Stars: ✭ 229 (+141.05%)
Mutual labels:  scrollbar
smooth-vuebar
Vue directive wrapper for smooth-scrollbar
Stars: ✭ 29 (-69.47%)
Mutual labels:  scrollbar
custom-scrollbars
ScrollBars customization tool
Stars: ✭ 20 (-78.95%)
Mutual labels:  scrollbar
ng-scrollable
Superamazing scrollbars for AngularJS
Stars: ✭ 58 (-38.95%)
Mutual labels:  scrollbar
mousecase
A JavaScript utility enabling horizontal dragging on mousedown events 🖱
Stars: ✭ 35 (-63.16%)
Mutual labels:  scrollbar

vue-custom-scrollbar

Vue.JS 的简约但完美的自定义滚动条组件(使用了 utatti/perfect-scrollbar,所以如果遇到某些问题,可以查看 perfect-scrollbar 仓库)

Minimalistic but perfect custom scrollbar component for Vue.JS(using utatti/perfect-scrollbar, so if you have any question, you also can check the perfect-scrollbar repo)

为什么要自定义滚动条/Why custom scrollbar

众所周知,谷歌浏览器支持自定义滚动条,但是火狐或其他浏览器不支持,如果你希望你的网站更完美,就用这个组件吧~

As you know, Chrome support custom scrollbar, but Firefox or other browsers don't support it, if you want your website perfect, please use this component~

为什么要使用 vue-custom-scrollbar?/Why use vue-custom-scrollbar?

vue-custom-scrollbar 是 Vue.JS 的一个简约但完美的自定义滚动条组件

vue-custom-scrollbar is minimalistic but perfect scrollbar component for Vue.JS.

  • 不改变设计布局 / No change on design layout
  • 不需要手动操作 DOM / Don't need manipulate DOM manually
  • 使用普通的 scrollTop and scrollLeft / Use plain scrollTop and scrollLeft
  • 滚动条样式可完全自定义 / Scrollbar style is fully customizable
  • 布局更改后更新 / Efficient update on layout change

文档/Docs

Docs

例子/Example

<template>
 <div>
  <vue-custom-scrollbar class="scroll-area"  :settings="settings" @ps-scroll-y="scrollHanle">
    <img src="http://utatti.github.io/perfect-scrollbar/azusa.jpg" height="720" width="1280" alt="">
  </vue-custom-scrollbar>
</div>
</template>
<script>
import vueCustomScrollbar from 'vue-custom-scrollbar'
import "vue-custom-scrollbar/dist/vueScrollbar.css"
export default {
  components: {
    vueCustomScrollbar
  },
  data() {
    return {
      settings: {
        suppressScrollY: false,
        suppressScrollX: false,
        wheelPropagation: false
      }
    }
  },
  methods: {
    scrollHanle(evt) {
      console.log(evt)
    }
  }
}
</script>
<style >
.scroll-area {
  position: relative;
  margin: auto;
  width: 600px;
  height: 400px;
}
</style>

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].