The way jQuery animate () works is that it uses a timer that periodically fires and invokes a function that updates the DOM to reflect the state of the animation. Typically animations are relatively short and they may cover a fair amount of screen real estate, so I suspect (without confirming) that the timer expires, and is reset, at a fairly high rate to generate a smooth animation. Since your animation takes a long time, you might be able to modify the animate function so that the rate at which the animation proceeds can be set via an option. In your case you’d only need to update every 250ms or so since you’re covering about 3-4 pixels per second, roughly.
Related articles
WordPress – Jquery get dynamic urls(admin_url, template_directory)
WordPress provides a series of methods and global variables for getting the
How to get file size before uploading it using jquery
Script code: <script src="http://code.jquery.com/jquery-1.7.1.min.js" type="text/javascript" > </script> <script type="text/javascript"> [crayon-67666a8617879944160621/] </script> Html code: [crayon-67666a8617880980088681/] Demo: GetFileSize If you
jQuery: Difference between parent(), parents() and parentsUntil() methods.
Definition: parent() – Use this method to get direct parent element of the