Fix transitions for older webkits