Add transition.size.

Fixes #1327; supersedes #1328.