kohashi/jQuery-Keyframes-animation — Issue #1: How to use?
Author: AndryXY
Created: 2011-12-27 02:42:13+00:00
State: open

Hi :)
Thanks for your work. Can you add a little example, how to use your code, please?

Greetings from germany

P.S.: By the way, "feature detection" is much better than "browser detection" I think. A way like this would be safer:
```javascript
function styleSupport( prop ) {
var vendorProp, supportedProp,

// capitalize first character of the prop to test vendor prefix
capProp = prop.charAt(0).toUpperCase() + prop.slice(1),
prefixes = [ "Moz", "Webkit", "O", "ms" ],
div = document.createElement( "div" );

if ( prop in div.style ) {

// browser supports standard CSS property name
supportedProp = "";
} else {

// otherwise test support for vendor-prefixed property names
for ( var i = 0; i < prefixes.length; i++ ) {
vendorProp = prefixes[i] + capProp;
if ( vendorProp in div.style ) {
supportedProp = '-' + prefixes[i] + '-';
break;
}
}

// avoid memory leak in IE
div = null;

// add property to $.support so it can be accessed elsewhere
$.support[ prop ] = supportedProp;

return supportedProp;
}
}
```