Skip to content

shauchenka/Angular-Miniscroll

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular Miniscroll

Angular Miniscroll is a fork of little library for touch and desktop scrollbar application - Miniscroll-JS. if you found bugs send it to anton@trackduck.com or send to issue page

version 0.1

Include miniscroll.js into your page:

<script src="miniscroll.js"></script>

Include the html tag and add id or class::

<div class="scroller">
     // text here
</div>

CSS of the div ".scroller"::

.scroller {
     width: 400px;
     height: 300px;
     overflow: hidden;
}

Initialize the miniscroll:

new Miniscroll(".scroller", {
     axis: "y",
     size: 10,
     sizethumb: "auto",
     thumbColor: "#0e5066",
     trackerColor: "#1a8bb2"
 });

Change the color and aparence for all miniscroll class:

.miniscroll-thumb {
     background-color: #0e5066 !important;
}

.miniscroll-tracker {
    background-color: #1a8bb2 !important;
}

Change the color and aparence for a unique miniscroll id:

#miniscroll-target .miniscroll-thumb {
    background-color: #0e5066 !important;
}

#miniscroll-target .miniscroll-tracker {
    background-color: #1a8bb2 !important;
}

List of parameters:

*axis: axle of scrollbar ex: "y" ou "x"
size: the width of scrollbar ex: 10
sizethumb: o tamanho do thumb ex: 100 ou "auto"
thumbColor: the size of thumb ex: "#0e5066"
trackerColor: color of fund of tracker ex: "#1a8bb2"
scrollbarSize: size of scrollbar, you can set a size fix to scrollbar it ex: 300 this had left scrollbar with the height of 300px
isKeyEvent: Add arrow key event, by default is true
turnOffWheel: toggle on or off a mousewheel event, by default turnOffWheel is true


The MIT License (MIT)

Copyright (c)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A simple scrollbar for desktop and mobile application using javascript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.0%
  • CSS 43.0%