Now the animation of the side bar and the mainpanel are defined in the html.