update css with transitions