Add getters for transition.{attr,style}.

Proof-of-concept for #866.