在js代码中,我首先定义一个变量img1,表示html中id=img1的元素var img1 = getElemetnById("img1");然后该如何对img1这个变量使用animate呢?
不想用$(""#img1).animate的方法
能够通过变量img1使用animate
JavaScriptHTML
不想用$(""#img1).animate的方法
能够通过变量img1使用animate
JavaScriptHTML
只关注最新浏览器的话css3倒是有几个动画效果,分别是
变形(transform)、转换(transition)和动画(animation)你可以自行百度
不过这些IE8以下都不支持。
img.animate