Skip to content

Small and agnostic javascript library for easy page loading spinner. Ready for ES Modules.

Notifications You must be signed in to change notification settings

ManzDev/pageload

Repository files navigation

PageLoad.js

npm GitHub file size in bytes Libraries.io dependency status for latest release

Small vanilla javascript library 3.5KB (~1.4KB gzipped) for easy and simple page loading spinner. Ready for ES Modules. Agnostic. Zero dependencies.

Basic Usage

1. Vía NPM

npm install @manz/pageload
import PageLoad from "@manz/pageload";
PageLoad.start({ fakeMode: true });

2. Vía CDN

<script type="module">
  import PageLoad from "//unpkg.com/@manz/pageload";
  PageLoad.start({ fakeMode: true });
</script>
  • fakeMode mode run a slow progress bar

Custom Usage

FadeIn until completed

import PageLoad from "//unpkg.com/@manz/pageload";
PageLoad.start({
  autoIncrement: true,
  color: "mediumpurple",
  fadeIn: true
});

Progress bar on dark mode

import PageLoad from "//unpkg.com/@manz/pageload";
document.body.style.backgroundColor = "black";
PageLoad.start({
  fakeMode: true,
  backgroundColor: "#222",
  color: "#c00",
  spinBarColor: "#ccc",
  enableProgress: true
});

More info about pageload and options.

About

Small and agnostic javascript library for easy page loading spinner. Ready for ES Modules.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published