仅将css效果应用于图像的特定部分。 [英] apply css effects only to specific part of a image.

查看:77
本文介绍了仅将css效果应用于图像的特定部分。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有一个图像,现在我想将动画应用到该图像的一部分。

我尝试过使用jquery animate方法,但适用于整个对象,但我希望

仅将效果应用于图像的特定部分。



感谢提前,

PSP

Hi Guys,

I have an image and now I want to apply animation to a part of that image.
I tried using jquery animate method but that works for whole object but I want
to apply effects only to specific part of a image.

Thanks in Advance,
PSP

推荐答案

从浏览器和javascripts的角度来看,图像是一个封闭的实体。你可以使用css来制作一部分技巧: http:/ /cssglobe.com/3-easy-and-fast-css-techniques-for-faux-image/ [ ^ ]。

在html5中你还有其他一些工具,如:< a href =http://www.html5canvastutorials.com/tutorials/html5-canvas-image-crop/> http://www.html5canvastutorials.com/tutorials/html5-canvas-image-crop/ [ ^ ]。
From browsers''s and javascripts''s point of view, the image is a closed entity. You can make however tricks with css to crop a portion of it: http://cssglobe.com/3-easy-and-fast-css-techniques-for-faux-image/[^].
In html5 you have some other tools too, like this: http://www.html5canvastutorials.com/tutorials/html5-canvas-image-crop/[^].


这篇关于仅将css效果应用于图像的特定部分。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆