How to have CSS transition apply when width increases, but not when decreasing?
I have an element that is changing width under different scenarios. I have set up CSS with a transition for the width: .element-class { transition: width 500ms ease 0ms; } But I only want it to do that transition if the width is decreasing. When it increases, I want it to change immediately (so no… Read More How to have CSS transition apply when width increases, but not when decreasing?