setting up animation functions according to config.sidebar.align