Vanilla-JS-Pages-Transition-Loader
A simple and minimalistic vanilla .js standalone pages transition loader, minified in a 1.12 kilobytes, one-line of code.
What’s included
Within the download you’ll find the following directories, files and logically grouping common assets.
Vanilla-JS-Pages-Transition-Loader/
└── vanilla-js-pages-transition-loader.min.js
Demo
See it live @ https://codepen.io/amarinediary/full/mdrQvGJ.
Quick start
to enable it, place the following
Theme
To change the theme's color, edit the theme's t variable with your new HEX color code located at the top of the script.
var t="#2774ab", // ...
The default theme's color is based on WordPress deep blue accent #2774ab.
Time on screen
The time on screen is appended the the page loading time. To increase the time on screen you can modify the default 100 milliseconds setTimeout value located at the end of the script.
// ...
,100)})
Star it and watch it!
If this project made your day, give us a star!