applying mixins for transitions in overlay css