Fix webkit bug causing transitions not to occur due to translation of animationduration to animation shorthand