Watching how a toddler responds to animations could help diagnose autism, research has suggested.