Creating a loading screen in HTML5

后端 未结 5 818
花落未央
花落未央 2021-02-05 16:28

I am having some issues finding a decent tutorial for generating a loading style screen with regards to HTML5. To be quite honest I\'m not sure exactly where to begin...

<
5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-05 17:13

    You can use element in HTML5. See this page for source code and live demo. http://purpledesign.in/blog/super-cool-loading-bar-html5/

    here is the progress element...

    
    

    this will have the loading value starting from 20. Of course only the element wont suffice. You need to move it as the script loads. For that we need JQuery. Here is a simple JQuery script that starts the progress from 0 to 100 and does something in defined time slot.

    
    

    Add this to your HTML file.

    0%

    Hope this will give you a start.

提交回复
热议问题