Can someone explain how / why to use jQuery CSS interceptors?

I was looking for jQuery css hooks , and some of them are available on Github . I was able to use them to set some styles using jQuery, but as far as I understand, this only gives me a too complicated way to set the css style. I clearly lack sense ... What can I do with them? Can I use Opera support css columns? if so, how? Thank you for your help!

$(".sub").css({ 'columnWidth':'120px', 'columnRuleStyle':'dotted', 'columnRuleWidth':'1px', 'columnRuleColor':'#ccc', 'columnGap':'10px' }); 
+7
source share
3 answers

By adding support for these new or browser-specific CSS properties, yes yes it allows you to set using the $ .fn.css () function, but it also adds the ability to animate them, which is the main use for intercepts.

http://proj.jetless.org/AWESOME-TIME/

+3
source

csshooks is a good way to implement new css3 styles in browsers. You can create a csshook plugin for the border radius, which performs the detection function and implements the border radius differently in browsers that support it. Explains all of this right here:

http://api.jquery.com/jQuery.cssHooks/

+1
source

From the sound of things, these CSS hooks are useful for supporting specific browser CSS properties that do not have the core.css () function.

0
source

All Articles