Giter VIP home page Giter VIP logo

vue-scroll-shadow's Introduction

Vue Scroll Shadow

npm versionLicense: MITBuild Status

Component that customizes the scroll and inserts shadow when scrolling exists

Installation

NPM

npm i vue-scroll-shadow
# or
yarn add vue-scroll-shadow

CDN

<script src="https://unpkg.com/vue-scroll-shadow"></script>

Manual

You can also download and import it manually

<script src="/vue-scroll-shadow/dist/vue-scroll-shadow.min.js"></script>

Module import

import Vue from 'vue';
import ScrollShadow from 'vue-scroll-shadow';

Vue.component('scroll-shadow', ScrollShadow);

Examples

An example of how to use the library:

<template>
  <scroll-shadow>
    <ul>
      <li>Abarth</li>
      <li>Alfa Romeo</li>
      <li>Aston Martin</li>
      <li>Audi</li>
      <li>Bentley</li>
      <li>BMW</li>
      <li>Bugatti</li>
      <li>Cadillac</li>
    </ul>
  </scroll-shadow>
</template>

Properties

Component props:

Name Description Type Required Default
styleContainer - String false -
styleSubcontainer - String false -
scrollColor Scroll color String false #c5c5c5
scrollPadding Left scroll padding String false 0px
scrollWidth Scroll Width String false 8px
scrollColorHover Scroll color when hover String false #a6a6a6
shadow - String false 0 2px 4px rgba(0, 0, 0, 0.2) inset, 0 -2px 4px rgba(0, 0, 0, 0.2) inset
isShadow Verify shadow is visible Boolean false true

Demo Link

Local demo:

git clone https://github.com/andrelmlins/vue-scroll-shadow.git
cd vue-scroll-shadow
npm install && npm run dev

NPM Statistics

Download stats for this NPM package

NPM

License

Vue Scroll Shadow is open source software licensed as MIT.

vue-scroll-shadow's People

Contributors

andrelmlins avatar dependabot[bot] avatar

Watchers

 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.