Remove unused fns, move css animations to scss