itom-preloader-es6
v1.0.0
Published
Simple preloader for web app
Readme
- add class 'itom-preloader-overflow-hidden' to BODY tag
- include style.css in head
- include index.js before body closing tag
- init iTomPreloader: iTomPreloader.check({ timeout: 3000, backgroundColor: '#15648c', dotColor: '#FFFFFF', alwaysShow: false, images: [...] });
Options: timeout: milliseconds (default = 3000); backgroundColor: any background color (default = '#FFFFFF'); dotColor: any dots color (default = '#111111'); images: you can set array of images to preload and cache them,relative path from your public root (default = []); alwaysShow: show preloader every time;
Codepen editor page: https://codepen.io/itom-needforjamaica/pen/jjojMB
Codepen fullwidth page: https://codepen.io/itom-needforjamaica/full/jjojMB
