我非常想从我自己,但解决我的问题。 我的查询是: 我有一个图像我想旋转此图像作为慢动作从开始到90度翻转,并从90度相同的方式回来。 请让我知道解决方案,我该怎么办?如何旋转图像90 digree在两个方向
谢谢先进。
我用这个代码
<style type='text/css'>
.img {
transform: scale(-1, 1);
-moz-transform: scale(-1, 1);
-webkit-transform: scale(-1, 1);
-o-transform: scale(-1, 1);
-khtml-transform: scale(-1, 1);
-khtml-transform: scale(-1, 1);
-khtml-transform:speed 5s;
-khtml-transform:speed 5s; /* Safari */
}
</style>
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){
/*$('#image').mouseover(function(){
$(this).addClass('img');
}).mouseleave(function(){
$(this).removeClass('img');
});*/
//setTimeout(addclass(),5000)
setTimeout(function(){ addclass(); },5000);
});//]]>
function addclass(){
$("#add_remove").hide();
$("#image").addClass('img');
setTimeout(function(){ removeclass(); },5000);
}
function removeclass(){
$("#add_remove").show();
$("#image").removeClass('img');
setTimeout(function(){ addclass(); },5000);
}
</script>
</head>
<body>
<img id="image" src="robot_upper.png"/>
</body>
请包括你在你的问题都试过了。 –
欢迎来到SO!它是一个好主意,分享你已经尝试过,并指定你面对的确切问题 – Ani
为什么你不谷歌'图像处理'或'图像旋转'?或向我们展示您尝试编写和失败的代码? –