Coder Social home page Coder Social logo

axorax / loadin.js Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3 KB

Simple page loading indicator

Home Page: https://www.npmjs.com/package/loadin

License: MIT License

JavaScript 100.00%
js-loader loadin loading-indicator page-loading page-loading-indicator

loadin.js's Introduction

loadin.js

Simple page loading indicator

⚙️ 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

loadin.js's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.