refactor initAnimation for initializing ending points
1 file changed