1.0.1 • Published 3 years ago

scrollboss v1.0.1

Weekly downloads
-
License
MIT License
Repository
github
Last release
3 years ago
ObjectDescpription
colorto apply bootstrap and custom hex color on bar
backgroundto apply bootstrap and custom hex color on bar track
widthto apply width size of bar in pixel
radiusused to radius apply on bar or track
shadowshadow size of bar track

Method

scrollboss.apply({
  color:"<bar_color>", //primary, danger, success, #e8009b(custom hex)
  background:"<track_color>", //primary, danger, success, #e8009b(custom hex)
  width:10, //bar width (in px) 
  radius:50, //bar radius
  shadow:5, //track shadow
});

Complete Code Example

Live Try => https://jsfiddle.net/8o7hgct9/

<html>
    <head>
        <title>
            The ScrollBoss
        </title>
        <script src="https://cdn.jsdelivr.net/gh/rohit-chouhan/scrollboss/scrollboss.js"></script>
        <script>
            scrollboss.apply({
                color:"primary",
                background:"success",
                width:10,
                radius:50,
                shadow:5,
            });
        </script>
    </head>
    <body>
        <h2>Hello</h2><br><br><br><br><br><br><br><br>
        <h2>Developer</h2><br><br><br><br><br><br><br><br>
        <h2>I</h2><br><br><br><br><br><br><br><br>
        <h2>Am</h2><br><br><br><br><br><br><br><br>
        <h2>ScrollBoss</h2><br><br><br><br><br><br><br><br>
    </body>
</html>

Developed by Rohit Chouhan