fixing css transition quirks