Animates sections depending on relative direction