diff --git a/Readme.md b/Readme.md index 60db109..b2b9a92 100644 --- a/Readme.md +++ b/Readme.md @@ -169,6 +169,13 @@ specify this to change the parent container. (default: `body`) NProgress.configure({ parent: '#container' }); ~~~ +#### `topPosition` +Configure this to change the top position of the bar. (default: `0`) + +~~~ js +NProgress.configure({ topPosition: 20 }); +~~~ + Customization ------------- diff --git a/nprogress.js b/nprogress.js index 708bee1..8bc738f 100644 --- a/nprogress.js +++ b/nprogress.js @@ -27,7 +27,8 @@ barSelector: '[role="bar"]', spinnerSelector: '[role="spinner"]', parent: 'body', - template: '