I am facing an issue where I am trying to add transition duration to the changes made on a button. Below is the code I am using:
ingenieriaInd.addEventListener('click',(e)=>{
ingenieriaInd.style.transition = 'all 500ms ease-in-out';
ingenieriaInd.style.width = '90vw';
ingenieriaInd.style.height = '80vh';
ingenieriaInd.style.position = 'absolute';
ingenieriaInd.style.justifyContent = 'flex-start';
ingenieriaInd.style.top = '5vh';
ingenieriaInd.style.left = '-15vw';
})
All the changes are taking effect except for the transition.
I want the changes I make to have a smooth transition effect.