Use css transitions for dock