update sidebar animation