I stumbled upon the below-mentioned practice code →
https://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_eff_animate_progressbar
After that, I tried to learn the Jquery animate function here →
http://api.jquery.com/animate/
Most of the things are clear, but I have trouble grasping this concept:
step: function(x) {
$("#demo").text(Math.round(x * 100 / 400) + "%");
- How to decide which function to use. Are there any limitations to learn or the functions are Infinite?
- I still do not understand the maths part of the function.