Use a mixin for transitions