1.0.8 • Published 3 years ago

auto-spa v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago