Git Product home page Git Product logo

scrolline.js's Introduction

Scrolline.js

A jQuery plugin. Create a scroll line bar indicator on the page.

Demonstration

Documentation

Basic Usage

Include scrolline.js file in the page, along with jQuery.

<script src="js/jquery.js"></script>
<script src="js/scrolline.js"></script>

Then call $.scrolline(); to launch the plugin.

Options

You can apply a set of optional options:

  • backColor - Define the color of back's scrolline (default '#ecf0f1')
  • direction - Can be vertical or horizontal (default 'horizontal')
  • frontColor - Define the color of front's scrolline (default '#2ecc71')
  • opacity - Define alpha's scrolline, value must be between 0 and 1 (default 1)
  • position - Define the position of scrolline : top and bottom for horizontal's position, left or right for vertical's position (default top in horizontal and left in vertical)
  • reverse - Revert the front line sens on set value at true (default false)
  • weight - Define the larger of scrolline on pixels (default 5)
  • zindex - Change the z-index value if needed (default 10)
  • scrollEnd - Callback's function call at the end of scrolling

Example

Scrolline revert with custom color at bottom position:

$.scrolline({
    reverse : true,
    position : 'bottom',
    backColor : '#2980b9',
    frontColor : '#f1c40f',
    weight : 12
});

Scrolline vertical at right position with callback:

$.scrolline({
    position : 'right',
    direction : 'vertical',
    weight : 30,
    scrollEnd : function() {
		alert('End of scroll!');
	}
});

Compatibility

  • Safari
  • Firefox
  • Chrome
  • IE
  • Safari mobile

Credits

Author

Anthony Ly, on twitter @Pik_at

Licence

Licence MIT

scrolline.js's People

Contributors

anthonyly avatar

Watchers

 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.