You can view the website here for help knowing what is happening:
The menu is the column that is the first on the left.
I have these divs inside of a div with a class of nav. the child divs have a class of page. The page divs have an active class when clicked. When a page div is clicked, I want the active class to be on the div that was clicked only, and the active div moves vertically to the one that was clicked, and it changes it’s width to fit it. I know I could simply just remove and add the classes in javascript, but how could I have it transition vertically as if the transition: 0.5s; property in CSS?
You can view the HTML for the many here: `<div class=”nav flex-column”>
<div class=”page”><i class=”fa-solid fa-house-chimney”></i>Home</div>
<div class=”page active”><i class=”fa-solid fa-inbox”></i>Inbox</div>
<div class=”page”> <img class=”botprofile” src=”profile-bot.svg” alt=””>Chatbots</div>
<div class=”page”><i class=”fa-solid fa-people-group”></i>Employees</div>
<div class=”page”><i class=”fa-solid fa-user”></i>Users</div>
<div class=”page”><i class=”fa-solid fa-building”></i>Company Settings</div>
<div class=”page”><i class=”fa-solid fa-gears”></i>Prefrences</div>
</div>