Transition arbitrary html elements