Giter Site home page Giter Site logo

amenhotep19 / vuescroll Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yvescoding/vuescroll

0.0 3.0 0.0 2.82 MB

♻️ A powerful, customizable, multi-mode scrollbar plugin based on Vue.js

Home Page: http://vuescrolljs.yvescoding.org/

License: MIT License

JavaScript 98.68% CSS 1.32%

vuescroll's Introduction

Vuescroll

VersionBuild Status Coverage License Download prettier

English Version | 中文版

A powerful, customizable, multi-mode scrollbar plugin based on Vue.js - vuescrolljs.yvescoding.org

Demo

Demo

Online Demo(Recommend to use mobile)

Features

Basic 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 of scrolled content, you can checkout this demo.

Features only for slide mode

Other features

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 remove parts that are not used, you can import vuescroll 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>

Guide List

Todo List

  • Separate vuescroll into two parts : Native mode and Slide mode(Achieved)

Changelog

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

Contribution

Please check out CONTRIBUTING.

Communication

Twitter@wangyi70991

License

MIT

vuescroll's People

Contributors

wangyi7099 avatar diomed avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.