function camelCase(str) {
    return str.replace(/-[a-z]/g, function(str) {
      return str.charAt(1).toUpperCase();
    });
  }
Older browsers [FF31] expect camelCase
property keys.
e.g.
 animation-duration --> animationDuration