added transitions to darken lighten functions