Reading Position Indicator written in VanillaJS
- Simple aproach
- No dependencies
< 1kb
minified
1 ➖ Download the latest release
2 ➖ Add snakke.min.js
(src
folder on zip
file) before the closing <body>
tag:
<script src="path/to/snakke.min.js"></script>
3 ➖ Add simple rule in your CSS:
.snakke-bar {
/* Required style */
position: fixed;
top: 0;
left: 0;
transition: width .3s ease;
/* Below, your bar style */
height: 5px;
background: #2ecc71;
}
gulp server
➖ Server to development (Go to http://localhost:7000)gulp build
➖ Generatesnakke.min.js
gulp tag
➖ Release a new version
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D