1.0.0 • Published 12 months ago

loadin v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

⚙️ Installation

npm i loadin

CDN:

📖 Documentation

🔸 Import loadin

import loadin from 'loadin';

🔸 Create page loading indicator

loadin.page();

🔸 Create page loading indicator with options

loadin.page({
    position: 'fixed',
    top: '0',
    left: '0',
    height: '10px',
    width: '1%',
    zIndex: '69',
    transition: 'width 1s ease',
    background: 'red',
    append: 'div.navbar'
});

🔸 Custom page loader

const loader = loadin.create();

loadin.applyDefault(loader);

loadin.css(loader, 'background: yellow;');

loadin.width(loader, '60%');

setTimeout(() => {
    loadin.remove(loader);
}, 3000)

🔸 loadin.create() with options

const loader = loadin.create({
    append: 'div',
    class: 'myLoader'
})

Support me on PatreonCheck out my socials