您可以内联更改CSS3动画关键帧属性(即在HTML样式属性中)吗? [英] Can you change CSS3 animation keyframe attributes inline (i.e. in the HTML style attribute)?
本文介绍了您可以内联更改CSS3动画关键帧属性(即在HTML样式属性中)吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以通过内联调整来更改动画关键帧属性。
Is it possible to change the animation keyframe attributes by making inline adjustments.
例如
@-moz-keyframes slidein {
from {
width: 10%;
}
to {
width:50%;
}
}
是否可以更改
<div id="someID" style="change keyframe here">
暂时,我只是在页面上动态创建整个样式表,以便自定义关键帧。
For the time being I am just creating an entire style sheet dynamically on the page in order to customize the keyframes.
此方法有效,但是为了简化起见,我宁愿调整内联属性。
This method works, however I would much rather adjust the attributes inline for simplicity.
推荐答案
否由于未在元素中声明动画,因此仅在其上调用。这就像试图将方法添加到对象而不是类中。不可能,抱歉;)
No. since the animation is not declared in the element, it's only called upon it. It's like trying to add methods into an object instead of to a class. Not possible, sorry ;)
这篇关于您可以内联更改CSS3动画关键帧属性(即在HTML样式属性中)吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文