If I were writing a JavaScript line to set a style attribute of an element it could look like this (this example: \"width\"):
document.getElementById(\'myDiv
If you don't want to keep digging up those pesky style properties and their naming conventions you can always use jQuery to keep it simple.
$('#myDiv').css("-webkit-transition", "value");