Animate sidebar with CSS transitions