Chrome 44中jmpress不会生成动画 [英] jmpress does not animate in Chrome 44

查看:142
本文介绍了Chrome 44中jmpress不会生成动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是jmpress的链接: jmpressjs.github.io/jmpress.js



请注意,Chrome 44中的动画效果并不理想(本文中为最新版本的Chrome)。



在Safari 8.0.7中运行这个相同的页面,并且动画工作得很好。



有人知道为什么会发生这种情况吗?



这个问题仍然在github上打开( issue#179
但在评论中有修正(这里),这对我来说工作得很好:)



在jmpress.js文件的mapProperty函数中,
更改了行

  return - + prefix + - + postfix; 

改为:

  return(prefix!==)? - + prefix + - + postfix:postfix; 

(回复编辑于@ worldofjr的建议)


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?

解决方案

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)

这篇关于Chrome 44中jmpress不会生成动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆