You should look here: http://www.javascriptkit.com/javatutors/setcss3properties.shtml
As you can see setting CSS Properties with “-” just results in the next character to be capital:
document.getElementById('fade').style.WebkitTransition = 'opacity 1s';
document.getElementById('fade').style.MozTransition = 'opacity 1s';