CSS transition fixes