Add transition convenience method for quickly applying/removing the css transition on the element