Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NProgress bar does not work properly with jQuery 1.7.1 #17

Open
bpossolo opened this issue Aug 23, 2013 · 0 comments
Open

NProgress bar does not work properly with jQuery 1.7.1 #17

bpossolo opened this issue Aug 23, 2013 · 0 comments

Comments

@bpossolo
Copy link

I just discovered that NProgress doesn't work on Webkit when combined with jQuery 1.7.1

The bug resides in the fact that NProgress tries to set the CSS transition and transform properties without vendor prefixes.
For example: $('.bar').css( { transition: X, transform: Y });

It seems newer versions of jQuery translate the basic property names into vendor-specific versions automatically. jQuery 1.7.1 does not do this property name interpolation and it causes the progress bar to show as 100% all the time.

The temporary workaround is to configure NProgress to positionUsing : 'margin-left'
This appears kind of jerky but it works.

The better solution is for NProgress to pass vendor-specific CSS properties using a technique like this:
http://stackoverflow.com/questions/10237731/css3-transitions-inside-jquery-css

This was referenced Aug 28, 2013
ebi pushed a commit to squirro/nprogress that referenced this issue Nov 15, 2013
… automatically interpolate css properties into vendor-prefixed properties (like jquery 1.7.1). addresses issue rstacruz#17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant