Add mixin for transition.