jquery.swatches icon indicating copy to clipboard operation
jquery.swatches copied to clipboard

Use CSS transitions for the hover effects

Open isGabe opened this issue 11 years ago • 3 comments

I say when it comes to enhancements like that, code for browsers of the present and future and let browsers of the past do without.

isGabe avatar May 15 '13 03:05 isGabe

Here's some cool reading about how to do this. Having Modernizr as a dep would be lame, but if you're only detecting css animation features, you could probably do it in a line.

http://www.bradshawenterprises.com/blog/2011/a-jquery-function-to-animate-using-css3-transitions-if-possible-with-the-animate-fallback/

pkarl avatar May 15 '13 13:05 pkarl

Yeah this does look cool. I'll take a look at it tonight. Cheers

mixinmax avatar May 15 '13 13:05 mixinmax

I guess IE 9 doesn't support transitions, does it? So maybe the fallback is the way to go. I know Flexslider does the CSS animation with jQuery fallback, but not sure how it works. https://github.com/woothemes/flexslider

isGabe avatar May 15 '13 15:05 isGabe