add the basic function to scroll animation view