added `transitioned` event and examples