2014-10-28 40 views
-4

我能以某种方式为右侧图片左侧的图像制作动画。 需要一个流畅的动画。使用jQuery无法显示动画图像

我发现如何做到这一点没有动画。使用CSS -webkit-filter:brightness(1000%);

enter image description here

+1

告诉我们你的html和css – 2014-10-28 13:22:10

+1

http://css3.bradshawenterprises.com/cfimg/ – ReeCube 2014-10-28 13:23:11

回答

1

只是放在另一个OT一个图像,并使用​​像

HTML

<div class="container-with-relative-position"> 
    <img1> 
    <img2 style="position: absolute;" id="img2"> 
</div> 

JS

$('#img2').fadeOut(1000); 

对于js函数,你可以使用任何你想要的触发器,如click,'hover'等。而html只是你必须做的方案,而不是实际的代码。