History/transition issues, trimming css