jQuery变形图像效果 [英] jquery morphing image effect
问题描述
我很确定这是不可能的,但是. .
I'm pretty sure this is impossible, but. . .
我正在尝试获得变形效果(例如此页面上的Flash图像旋转器-> http://www. sikids.com ).或至少是非常相似的效果.我看到jquery UI具有一些变形效果,但是我找不到它.这对我们的客户很重要,因此,尽可能接近的效果都会很棒.
I am trying to get a morphing effect (like on this page in the flash image rotator -> http://www.sikids.com) in jquery. Or at least an effect that is very similar. I saw that jquery UI had some morphing effects, but I haven't been able to find it. This is important to our client, so any effect that is as close as possible would be awesome.
推荐答案
这不是不可能的...但是它可能很慢.
It's not impossible... but it might be slow.
您将不得不使用画布来获取图像数据并对其进行转换.查看此 SO答案和此插件,这可能会使事情变得简单.我没有使用过该插件,因此在IE中,您可能必须包含其他 canvas插件.
You'll have to use canvas to grab the image data and transform it. Check out this SO answer and this plugin, which might help make things easier. I haven't used that plugin so in IE, you might have to include an additional canvas plugin.
这篇关于jQuery变形图像效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!