do css transitions have to have an event code example
Example: transition event listener does not work
try 'webkitTransitionEnd' instead of 'transitioned'
element.addEventListener( 'webkitTransitionEnd',(e)=> {
console.log( "Finished transition!" );
} );