Added delay function to transition mixin