A progress line with a spider
npm install progress-spider
npm install progress-spider
`
+ Import
`js
import SpiderProgress from "progress-spider";
import "progress-spider/dist/style.css";
`
+ Call with params
`js
// The first two params are css selector
// The first params can be null. This will set the position attribute of the spider container into "fixed"
// and this is a config example:
config = {
left: 20,
bottom: 40,
style: { // This will be apply on the container of spider
top: 0
}
}
SpiderProgress(attachSelector, trackTargetSelector, config)
``