1.0.0 • Published 5 years ago

itom-preloader-es6 v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

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