I
I
interprise2015-10-12 16:02:31
JavaScript
interprise, 2015-10-12 16:02:31

How to make a dynamic loading bar?

The task is such, there is a need to make a loading bar that will adequately behave both on the desktop and on mobile browsers.
This is how it is now implemented. There are many <img>(the designers drew an intricate one) for which I change the src as it loads.
Everything works fine if there is enough screen width, but you need to make sure that on the small screen of the mobile device the strip does not wrap to the next line.
What can you advise?
PS html+js is not the main profile
now implemented like this

<img id="load_0" src="/empty.png" >
    <img id="load_1" src="/empty.png" >
    <img id="load_2" src="/empty.png" >
    <img id="load_3" src="/empty.png" >

and change src as it loads. but the problem is that part of the images on a small screen crawls to the second line, how to make sure that this does not happen.
example
968fd355ccec9062ac31f26d55a5ee18.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Io, 2015-10-12
@vawsan

Ras www.w3schools.com/bootstrap/bootstrap_progressbars.asp
Dvas https://jqueryui.com/progressbar/#default
Tris https://kimmobrunfeldt.github.io/progressbar.js/
etc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question