1.0.8 • Published 2 years ago

auto-spa v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

NOTICE: I made this script for my personal use, so you may expect some bugs and it may not work in your case.

Automatic spa routing

This is a lightweight script (~4k unpacked) to transform your website routing to make it look faster and add a progress-bar.

This script may not work in your project if your stylesheets are ordered in a strange manner because the script appends only the new styles to the head and leaves the old ones in place.

Usage

<script src="https://cdn.jsdelivr.net/npm/auto-spa"></script>

or

import "auto-spa";

Customization

Right now, you can only customize the progressbar.

Default styles:

/* Container */
#auto-spa-progress {
  width: 100vw;
  height: 4px;
  background: #222;
  position: absolute;
  top: 0;
  left: 0;
}
/* inner progress */
#auto-spa-progress .progress {
  height: 4px;
  background: #ddd;
  width: 0%;
  transition: width 0.5s ease;
}
1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago