add utility function to mimic PHP function_exists()
convert deprecated animations to CSS transitions