嗨,我最近更新了聚合物到0.5.1,我的核心动画停止工作。
这是我的核心动画元素:
<core-animation duration="400" fill="forwards" id="show">
<core-animation-keyframe>
<core-animation-prop name="opacity" value="0.7"></core-animation-prop>
</core-animation-keyframe>
</core-animation>和js代码:
var show = this.$.show;
show.target = this.$.img;
show.play()问题是,这根本不起作用。在chrome控制台中,我得到了错误Uncaught #<Object>,这是由effect.js中的第63行引起的:
61 if (group[0].offset != 0 || group[group.length - 1].offset != 1) {
62 throw {
63 type: DOMException.NOT_SUPPORTED_ERR,
64 name: 'NotSupportedError',
65 message: 'Partial keyframes are not supported'
66 };
67 }发布于 2014-12-02 00:40:53
它看起来像5.1,你至少需要两个关键帧,一个用于起始值,一个用于结束值。
https://stackoverflow.com/questions/27185471
复制相似问题