I know python, javascript, java and C#. And one of my favourite language is python as it has simple syntax and can be learned by many people easily and can be specially used to automate stuff
Can I use progress bars and Javascript to make a preloader, basically I would get the percentage till the website would load completely and till that I would keep updating the loader, I know the result won't be beautiful, but will it get the job done?
yes you can, as you can see most of the progress rely on background-size going from 0% 0% to X 0%. All you have to do is to update the X until you reach the max value (the one I used in the keyframe)
I know python, javascript, java and C#. And one of my favourite language is python as it has simple syntax and can be learned by many people easily and can be specially used to automate stuff
I know python, javascript, java and C#. And one of my favourite language is python as it has simple syntax and can be learned by many people easily and can be specially used to automate stuff
Can I use progress bars and Javascript to make a preloader, basically I would get the percentage till the website would load completely and till that I would keep updating the loader, I know the result won't be beautiful, but will it get the job done?
yes you can, as you can see most of the progress rely on background-size going from
0% 0%
toX 0%
. All you have to do is to update the X until you reach the max value (the one I used in the keyframe)I have another question how do I center it ?
It depends on your HTML strucutre. Each loader is a single div so any centring method will work (flexbox, CSS grid, position:absolute, etc)
Thank you, I appreciate your work a lot.
Please let me know you ,
Please share the link if you already find something progress bar with percentage till the website would load completely