added scan fn fucntion as a fallback for css animations