Pathgather / please-wait

A simple library to show your users a beautiful splash page while your application loads.
http://pathgather.github.io/please-wait/
MIT License
1.59k stars 155 forks source link

Update documentation #32

Open guncha opened 7 years ago

guncha commented 7 years ago

A few issues were brought up:

michshat commented 6 years ago

Here how i used it in react project:

  1. install libs npm install please-wait --save-dev npm install spinkit --save-dev

  2. import references

    import 'please-wait/build/please-wait.css';
    import 'spinkit/css/spinners/5-pulse.css';
    import { pleaseWait } from 'please-wait';
  3. initialize the component

    window.loading_screen = pleaseWait({
        logo: 'logo.png',
        backgroundColor: '#1DA57A',
        loadingHtml: "<p class='loading-message'>The application is getting ready ...</p><div class='sk-spinner sk-spinner-pulse'></div>"       
    });
  4. dismiss the component

    window.loading_screen.finish();

    Hope that helps

roy1196 commented 6 years ago

How can I init the var? exist an init method or start?