使用jQuery复制CSS过滤器 [英] Replicate CSS filter using jQuery

查看:236
本文介绍了使用jQuery复制CSS过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,我试图复制一些过滤功能在CSS中找到,但目前它只在WebKit浏览器中工作,由于Firefox的缺乏过滤器支持。
有关详细信息的详细信息,请参见此处> Firefox过滤器动画

I've got an issue where I'm trying to replicate some filter functionality found in CSS, but at the moment it is only working in WebKit browsers, due to Firefox's lack of filter support. More information about specifics can be found here > Firefox Filter Animations

具体来说,我试图在jQuery中复制-web-kit-filter:hue-rotate(x),
你可以在这里看到webkit动画: http://omega.themestrapped.com

Specifically, I am trying to replicate -web-kit-filter: hue-rotate(x) in jQuery, you can see the webkit animation here: http://omega.themestrapped.com

我尝试过Google搜索没有效果,并想知道是否有任何jQuery大师可以帮助我。

I've tried searching Google to no avail, and wondered if there was any jQuery gurus which could help me out.

推荐答案

href =https://developer.mozilla.org/en-US/docs/Web/CSS/filter#hue-rotate%28%29 =nofollow>不支持在Firefox 中,它可能值得一看 PaintbrushJS (请参阅颜色色调演示), pusher.color Pixastic

You're correct, it is not supported in Firefox, it may be worth looking at either PaintbrushJS (see the color tint demo), pusher.color or Pixastic

这篇关于使用jQuery复制CSS过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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