adding test for CSS transition
cleaning up CSS transition code