javascript - how to change animate width property to transform scale -


i made progress bar loading images, bar's width animate 0 100%, how can make same function transform scale property?

this actual code:

https://jsfiddle.net/tibuakaw/db6d3o6h/

updateprogressbar: function() {          $('#progress-bar').stop().animate({              'width': (progressbar.loadedelmt / progressbar.countelmt) * 100 + '%'          });

something this?

$('#progress-bar').stop().animate({    'transform': 'scalex(' + (progressbar.loadedelmt / progressbar.countelmt) + ')' }); 

of cause, should progress bar 100% width in css then


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -