itom-preloader-es6 v1.0.0
1) add class 'itom-preloader-overflow-hidden' to BODY tag 2) include style.css in head 3) include index.js before body closing tag 4) 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
5 years ago