maintaining other styles on display element when animating