I don't think the distinction is animate/inanimate.
Submarines sail because they are nautical vessels. Wind-up bathtub swimmers swim, because they look like they are swimming.
Neither are animate objects.
In a browser, if you click a button and it takes a while to load, your phone is thinking.