convert to spaces
Add animation callback function