Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/YvesCoding/vuescroll

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/YvesCoding/vuescroll

  • v4.8.12+incompatible
  • Source
  • Go
  • Socket score

Version published
Created
Source

Vuescroll

VersionBuild Status Coverage License Download prettier

Demo

Online Demo(Recommend to use mobile)

Introduction

Vuescroll is a full customizable scrollbar based on Vue.js, which spports pull-to-refresh and push-to-load. - vuescrolljs.yvescoding.org

It is compitable with both PC and mobile phone.

Features

Basic & native mode features

  • Support customize scrollbar, including setting rail/bar's backgroundColor , opacity,and setting bar's keepShow or not.

  • Support smoothly scroll, you can set easing to get different scroll animations.

  • Support detecting the size change of scrolled content.

  • Support typescript.

  • Support SSR(Server-Side Rendering).

Slide mode(includes basic & slide mode features) features

  • Support pull to refresh and push to load, for detail, you can checkout this demo, and this demo of SSR version.

  • Support snapping. Snapping means you can scroll same given distance in options at each timem. You can use it to make a time-picker.

  • Support paging. Paging means you can scroll a distance of container at each time. You can use it to make such a Carousel.

Quick Start

Import

In your entry file:

import Vue from 'vue';
import vuescroll from 'vuescroll';
import 'vuescroll/dist/vuescroll.css';

Vue.use(vuescroll);

In order to reduce the size of the bundle, you can also import modes separately

Only import the features of slide mode:
import Vue from 'vue';
import vuescroll from 'vuescroll/dist/vuescroll-slide';
import 'vuescroll/dist/vuescroll.css';

Vue.use(vuescroll);
Only import the features of native mode:
import Vue from 'vue';
import vuescroll from 'vuescroll/dist/vuescroll-native';
import 'vuescroll/dist/vuescroll.css';

Vue.use(vuescroll);

Usage

Wrap the content you need to scroll by vuescroll

  <template>
    <div class='your-container'>
        <!-- bind your configurations -->
        <vue-scroll :ops="ops">
            <div class='your-content'>
            </div>
        </vue-scroll>
    </div>
  </template>
  <script>
    export default {
      data() {
        return {
          ops: {
            // some configs....
          }
        }
      }
    }
  </script>

Detailed guides

Changelog

Detailed changes for each release are documented in the release notes.

Contribution

Please check out CONTRIBUTING.

Communication

For bug report or feature request, you can raise an issue or twitter @wangyi70991

License

MIT

FAQs

Package last updated on 15 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc