So this is still work in progress early going....but its shows how the script works. I changed the logic of the script some (reversed) and added new names. togme and togon are the two classes that are used. togoff is not used in this case but I added it to show in the inspector of the browser. you have to have id's on the elements in order to use same classes on different elements for different settings. (I think that's the rule ?). You add the classes togme and togon to the element. once everything is set you can grey out togon which will be toggled off (removed) so any settings you make with togon greyed out will take effect.
Transitions are set with togon greyed out. Height and line height are set that way also. This allows for applying a added class effect to the parent and targeting the children also. If you want multiple actions you would need to duplicate script and change tog's to something like togme2 and togon2. Very early in this thinking but excited to try out on other projects I have run into where multiple actions need to be triggered. An argument will probably be made inline style sheet settings would be easier.....
Obviously I have not had time to add the breakpoints yet. Thought keep it simple them move down.
I should have more time this weekend....been a busy week.
Bootstrap 5 CSS Grid.