Fix syntax error in animation example