问题
Here's a link to jmpress: jmpressjs.github.io/jmpress.js
Notice how the animations do not work in Chrome 44 (latest version of Chrome as of this post).
I tried running this same page in Safari 8.0.7, and the animations worked just fine.
Does anyone know why this is happening?
回答1:
this question gets old but is still relevant.
The issue is still open on github (issue #179) but there is a fix in comments (here), that works fine for me at least :)
In the jmpress.js file, in the mapProperty function, change the line
return "-" + prefix + "-" + postfix;
to the following:
return (prefix!=="")?"-" + prefix + "-" + postfix:postfix;
(answer edited following @worldofjr's suggestion)
来源:https://stackoverflow.com/questions/31826838/jmpress-does-not-animate-in-chrome-44