Update anchor scroll function to scroll to target on hover